mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 13:14:59 -06:00
4.60 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
173c07e166
commit
c10e6b16f6
@@ -15,7 +15,7 @@ bool GetProgramFolderPath(UString &folder)
|
||||
{
|
||||
if (!NDLL::MyGetModuleFileName(g_hInstance, folder))
|
||||
return false;
|
||||
int pos = folder.ReverseFind(L'\\');
|
||||
int pos = folder.ReverseFind(WCHAR_PATH_SEPARATOR);
|
||||
if (pos < 0)
|
||||
return false;
|
||||
folder = folder.Left(pos + 1);
|
||||
|
||||
Reference in New Issue
Block a user