[PATCH] common: fixed a minor bug in ExpandPath of tyrutils
Signed-off-by: O.Sezer <sezero@users.sourceforge.net> Signed-off-by: Tyrann <tyrann@disenchant.net>
This commit is contained in:
parent
2ef9568778
commit
32d0cd9417
|
|
@ -120,7 +120,7 @@ ExpandPath(char *path)
|
|||
{
|
||||
static char full[1024];
|
||||
|
||||
if (!qdir)
|
||||
if (!qdir[0])
|
||||
Error("ExpandPath called without qdir set");
|
||||
if (path[0] == '/' || path[0] == '\\' || path[1] == ':')
|
||||
return path;
|
||||
|
|
|
|||
Loading…
Reference in New Issue