diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-16 12:02:48 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-16 12:02:48 +0000 |
commit | 621889cbc7c7ef16a777eb93d9ab7f91c4098f25 (patch) | |
tree | f6e25a8fc9b2d2079ac3b9f009c4fbc3589b370b /src/mir_app | |
parent | b7827bbbe8cba9a4be8b157b05d4be148ae6ea5d (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_app')
-rw-r--r-- | src/mir_app/src/langpack.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_app/src/langpack.cpp b/src/mir_app/src/langpack.cpp index 9e5e547c50..692dfa7634 100644 --- a/src/mir_app/src/langpack.cpp +++ b/src/mir_app/src/langpack.cpp @@ -75,7 +75,7 @@ BOOL EnumLangpacks(ENUM_PACKS_CALLBACK callback, WPARAM wParam, LPARAM lParam) DWORD v = CallService(MS_SYSTEM_GETVERSION, 0, 0);
pack.szLastModifiedUsing.Format("%d.%d.%d", ((v >> 24) & 0xFF), ((v >> 16) & 0xFF), ((v >> 8) & 0xFF));
/* file date */
- if (GetModuleFileName(g_hInst, pack.tszFullPath, SIZEOF(pack.tszFullPath))) {
+ if (GetModuleFileName(NULL, pack.tszFullPath, SIZEOF(pack.tszFullPath))) {
mir_tstrcpy(pack.tszFileName, _T("default"));
HANDLE hFile = CreateFile(pack.tszFileName, 0, FILE_SHARE_READ, 0, OPEN_EXISTING, 0, 0);
if (hFile != INVALID_HANDLE_VALUE) {
|