From f49b5e29d4f4bece4d7ae6b509f2ec523f89b319 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 15 Jun 2015 18:31:03 +0000 Subject: fix for a broken core modules filter in Options git-svn-id: http://svn.miranda-ng.org/main/trunk@14182 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_app/src/options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mir_app/src/options.cpp b/src/mir_app/src/options.cpp index cce95cfe23..faf822d515 100644 --- a/src/mir_app/src/options.cpp +++ b/src/mir_app/src/options.cpp @@ -538,7 +538,7 @@ static void RebuildPageTree(HWND hdlg, OptionsDlgData *dat) else if (mir_tstrcmp(dat->szFilterString, TranslateT(CORE_MODULES_FILTER)) == 0) { // replace string with process name - that will show core settings TCHAR szFileName[300]; - GetModuleFileName(NULL, szFileName, SIZEOF(szFileName)); + GetModuleFileName(g_hInst, szFileName, SIZEOF(szFileName)); TCHAR *pos = _tcsrchr(szFileName, _T('\\')); if (pos) pos++; -- cgit v1.2.3