summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-16 12:02:48 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-16 12:02:48 +0000
commit621889cbc7c7ef16a777eb93d9ab7f91c4098f25 (patch)
treef6e25a8fc9b2d2079ac3b9f009c4fbc3589b370b /src/mir_core
parentb7827bbbe8cba9a4be8b157b05d4be148ae6ea5d (diff)
fix for the %miranda_path% calculation
git-svn-id: http://svn.miranda-ng.org/main/trunk@14203 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/path.cpp4
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;