diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-09-24 20:33:28 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-09-24 20:33:28 +0000 |
commit | 5ef7edee2a5d7eae4bb110e497d2e63b633348c8 (patch) | |
tree | 33ade0a35721a3f056d313e6cb3d5347b9b117aa /protocols/Quotes/SettingsDlg.cpp | |
parent | af1c7bfc0cd0f76570e364dbb57cf447052c1ed5 (diff) |
Quotes:
fixed crash on start
git-svn-id: http://svn.miranda-ng.org/main/trunk@1643 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Quotes/SettingsDlg.cpp')
-rw-r--r-- | protocols/Quotes/SettingsDlg.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/Quotes/SettingsDlg.cpp b/protocols/Quotes/SettingsDlg.cpp index 863f75fc5b..0011d2e917 100644 --- a/protocols/Quotes/SettingsDlg.cpp +++ b/protocols/Quotes/SettingsDlg.cpp @@ -126,7 +126,7 @@ namespace ofn.nMaxFile = (DWORD)aFileBuffer.size();
ofn.lpstrFilter = pszFilter;
ofn.nFilterIndex = 1;
- ofn.hInstance = CModuleInfo::GetModuleHandle();
+ ofn.hInstance = g_hInstance;
ofn.lpstrDefExt = _T("log");
// ofn.lpstrFileTitle = NULL;
// ofn.nMaxFileTitle = 0;
@@ -407,7 +407,7 @@ namespace pParam->m_pPopupSettings->InitForContact(pParam->m_hContact);
}
- DialogBoxParam(CModuleInfo::GetModuleHandle(),
+ DialogBoxParam(g_hInstance,
MAKEINTRESOURCE(IDD_DIALOG_POPUP),
hWnd,
EditPopupSettingsDlgProc,reinterpret_cast<LPARAM>(pParam->m_pPopupSettings));
@@ -543,7 +543,7 @@ void ShowSettingsDlg(HANDLE hContact) }
else
{
- CreateDialogParam(CModuleInfo::GetModuleHandle(),MAKEINTRESOURCE(IDD_CONTACT_SETTINGS),NULL,EditSettingsPerContactDlgProc,reinterpret_cast<LPARAM>(hContact));
+ CreateDialogParam(g_hInstance,MAKEINTRESOURCE(IDD_CONTACT_SETTINGS),NULL,EditSettingsPerContactDlgProc,reinterpret_cast<LPARAM>(hContact));
}
}
@@ -714,7 +714,7 @@ namespace case IDC_BUTTON_POPUP_SETTINGS:
{
const CAdvProviderSettings* pAdvSettings = reinterpret_cast<CAdvProviderSettings*>(GetWindowLongPtr(hWnd,GWLP_USERDATA));
- DialogBoxParam(CModuleInfo::GetModuleHandle(),
+ DialogBoxParam(g_hInstance,
MAKEINTRESOURCE(IDD_DIALOG_POPUP),
hWnd,
EditPopupSettingsDlgProc,reinterpret_cast<LPARAM>(pAdvSettings->GetPopupSettingsPtr()));
@@ -1051,7 +1051,7 @@ bool ShowSettingsDlg(HWND hWndParent,CAdvProviderSettings* pAdvSettings) {
assert(pAdvSettings);
- return (IDOK == DialogBoxParam(CModuleInfo::GetModuleHandle(),
+ return (IDOK == DialogBoxParam(g_hInstance,
MAKEINTRESOURCE(IDD_PROVIDER_ADV_SETTINGS),
hWndParent,
EditSettingsPerProviderDlgProc,
|