Fix GetPathDirectory for paths containing '\'
This commit is contained in:
parent
2ca9f89e95
commit
a484a72f93
@ -294,7 +294,7 @@ String GetPathDirectory(CTSTR lpPath)
|
|||||||
CTSTR lpDirectoryEnd = srchr(lpPath, '/');
|
CTSTR lpDirectoryEnd = srchr(lpPath, '/');
|
||||||
|
|
||||||
if(!lpDirectoryEnd)
|
if(!lpDirectoryEnd)
|
||||||
lpDirectoryEnd = srchr(lpPath, '/');
|
lpDirectoryEnd = srchr(lpPath, '\\');
|
||||||
|
|
||||||
if(lpDirectoryEnd)
|
if(lpDirectoryEnd)
|
||||||
nDirectoryEnd = (int)((((UPARAM)lpDirectoryEnd)-((UPARAM)lpPath))/sizeof(TCHAR));
|
nDirectoryEnd = (int)((((UPARAM)lpDirectoryEnd)-((UPARAM)lpPath))/sizeof(TCHAR));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user