Unicode version of DdeCreateStringHandle should ignore codepage parameter.

This commit is contained in:
Dmitry Timoshkov 2004-04-22 23:46:21 +00:00 committed by Alexandre Julliard
parent 58080d4f6a
commit 476ac454ee
1 changed files with 2 additions and 4 deletions

View File

@ -1141,10 +1141,8 @@ HSZ WINAPI DdeCreateStringHandleW(DWORD idInst, LPCWSTR psz, INT codepage)
pInstance = WDML_GetInstance(idInst);
if (pInstance)
{
if (codepage == 0) codepage = CP_WINUNICODE;
hsz = WDML_CreateString(pInstance, psz, codepage);
}
hsz = WDML_CreateString(pInstance, psz, CP_WINUNICODE);
LeaveCriticalSection(&WDML_CritSect);
return hsz;