user32/tests: Compare against ASCII string first since it may not be a valid Unicode string in that case.

This commit is contained in:
Alexandre Julliard 2007-10-01 18:08:21 +02:00
parent cd2780e2a7
commit 78af9e6d01
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ static LRESULT WINAPI dde_server_wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPA
cmd = GlobalLock((HGLOBAL)hi);
if (!cmd || (lstrcmpW((LPCWSTR)cmd, exec_cmdW) && lstrcmpA(cmd, exec_cmdA)))
if (!cmd || (lstrcmpA(cmd, exec_cmdA) && lstrcmpW((LPCWSTR)cmd, exec_cmdW)))
{
trace("ignoring unknown WM_DDE_EXECUTE command\n");
/* We have to send a negative acknowledge even if we don't