Must check if wParam matches MakensisAPI::QH_*

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6559 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2014-10-22 16:49:45 +00:00
parent 46ac05004d
commit 9eb4035b08

View file

@ -434,7 +434,7 @@ INT_PTR CALLBACK DialogProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam
return TRUE;
}
case MakensisAPI::QUERYHOST: {
if (MakensisAPI::QH_OUTPUTCHARSET) {
if (MakensisAPI::QH_OUTPUTCHARSET == wParam) {
const UINT reqcp = 1200; // We want UTF-16LE
SetWindowLongPtr(hwndDlg, DWLP_MSGRESULT, (LONG_PTR)(1+reqcp));
return TRUE;