diff options
Diffstat (limited to 'plugins/Folders/src')
-rw-r--r-- | plugins/Folders/src/services.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Folders/src/services.cpp b/plugins/Folders/src/services.cpp index c09446f9d7..dfd24f6b59 100644 --- a/plugins/Folders/src/services.cpp +++ b/plugins/Folders/src/services.cpp @@ -83,7 +83,7 @@ int InitServices() CallService(MS_DB_GETPROFILENAMET, SIZEOF(szCurrentProfile), (LPARAM)szCurrentProfile);
TCHAR *pos = _tcsrchr(szCurrentProfile, '.'); if (pos) *pos = 0;
- GetModuleFileName(GetModuleHandle(NULL), szMirandaPath, SIZEOF(szMirandaPath));
+ GetModuleFileName(GetModuleHandleA("mir_app.dll"), szMirandaPath, SIZEOF(szMirandaPath));
pos = _tcsrchr(szMirandaPath, '\\'); if (pos) *pos = 0;
TCHAR *szTemp = Utils_ReplaceVarsT(_T("%miranda_userdata%"));
|