From 2b72ef9487d1487cb4096b359c3dec675ae2703e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 22 Mar 2014 09:36:17 +0000 Subject: crash fix git-svn-id: http://svn.miranda-ng.org/main/trunk@8678 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/DbEditorPP/src/settinglist.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/DbEditorPP/src/settinglist.cpp b/plugins/DbEditorPP/src/settinglist.cpp index e040ac7197..82e7ff0694 100644 --- a/plugins/DbEditorPP/src/settinglist.cpp +++ b/plugins/DbEditorPP/src/settinglist.cpp @@ -350,12 +350,12 @@ static LRESULT CALLBACK SettingLabelEditSubClassProc(HWND hwnd,UINT msg,WPARAM w switch (LOWORD(wParam)) { case IDOK: { - int len = GetWindowTextLength(hwnd) + 1; + int len = GetWindowTextLengthA(hwnd) + 1; char *value = (char*)_alloca(len); WCHAR *wc = NULL; DBVARIANT dbv = { 0 }; - GetWindowText(hwnd, value, len); + GetWindowTextA(hwnd, value, len); if (info->unicode) wc = mir_a2u(value); -- cgit v1.2.3