Commit d750780f authored by Guy L. Albertelli's avatar Guy L. Albertelli Committed by Alexandre Julliard

Fix conversion of W structure to A structure during notify.

parent d2b22894
......@@ -294,10 +294,16 @@ COMBOEX_NotifyEndEdit (COMBOEX_INFO *infoPtr, NMCBEENDEDITW *hdr, LPWSTR itemTex
return SendMessageW (GetParent(infoPtr->hwndSelf), WM_NOTIFY, 0,
(LPARAM)hdr);
else {
NMCBEENDEDITA ansi;
memcpy (&ansi.hdr, &hdr->hdr, sizeof(NMHDR));
ansi.fChanged = hdr->fChanged;
ansi.iNewSelection = hdr->iNewSelection;
WideCharToMultiByte (CP_ACP, 0, itemText, -1,
(LPSTR)hdr->szText, CBEMAXSTRLEN, NULL, NULL);
(LPSTR)&ansi.szText, CBEMAXSTRLEN, NULL, NULL);
ansi.iWhy = hdr->iWhy;
return SendMessageA (GetParent(infoPtr->hwndSelf), WM_NOTIFY, 0,
(LPARAM)hdr);
(LPARAM)&ansi);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment