From 78af9e6d018c1674490cb721588ee5decce9aefe Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 1 Oct 2007 18:08:21 +0200 Subject: [PATCH] user32/tests: Compare against ASCII string first since it may not be a valid Unicode string in that case. --- dlls/user32/tests/dde.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/user32/tests/dde.c b/dlls/user32/tests/dde.c index 811fa286d4f..b5e05c4fb99 100644 --- a/dlls/user32/tests/dde.c +++ b/dlls/user32/tests/dde.c @@ -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