Alexandre Julliard : user32/tests: Compare against ASCII string first since it may not be a valid Unicode string in that case .
Alexandre Julliard
julliard at winehq.org
Tue Oct 2 06:52:36 CDT 2007
Module: wine
Branch: master
Commit: 78af9e6d018c1674490cb721588ee5decce9aefe
URL: http://source.winehq.org/git/wine.git/?a=commit;h=78af9e6d018c1674490cb721588ee5decce9aefe
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Oct 1 18:08:21 2007 +0200
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 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/tests/dde.c b/dlls/user32/tests/dde.c
index 811fa28..b5e05c4 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
More information about the wine-cvs
mailing list