diff options
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/path.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mir_core/src/path.cpp b/src/mir_core/src/path.cpp index 2b61a97928..6e17eaa53a 100644 --- a/src/mir_core/src/path.cpp +++ b/src/mir_core/src/path.cpp @@ -197,12 +197,12 @@ MIR_CORE_DLL(int) CreateDirectoryTreeW(const WCHAR *szDir) int InitPathUtils(void)
{
- GetModuleFileNameA(hInst, szMirandaPath, SIZEOF(szMirandaPath));
+ GetModuleFileNameA(NULL, szMirandaPath, SIZEOF(szMirandaPath));
char *p = strrchr(szMirandaPath, '\\');
if (p)
p[1] = 0;
- GetModuleFileNameW(hInst, szMirandaPathW, SIZEOF(szMirandaPathW));
+ GetModuleFileNameW(NULL, szMirandaPathW, SIZEOF(szMirandaPathW));
WCHAR *tp = wcsrchr(szMirandaPathW, '\\');
if (tp)
tp[1] = 0;
|