Marcus Meissner : kernel32/tests: Fixed size to MultiByteToWideChar.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 1 05:16:59 CDT 2007


Module: wine
Branch: master
Commit: 1ad6abfbbc9762442feee2bc092ca2f0a110a422
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1ad6abfbbc9762442feee2bc092ca2f0a110a422

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Wed Aug  1 08:13:07 2007 +0200

kernel32/tests: Fixed size to MultiByteToWideChar.

---

 dlls/kernel32/tests/actctx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/kernel32/tests/actctx.c b/dlls/kernel32/tests/actctx.c
index 417f4d4..054f034 100644
--- a/dlls/kernel32/tests/actctx.c
+++ b/dlls/kernel32/tests/actctx.c
@@ -171,7 +171,7 @@ static int strcmp_aw(LPCWSTR strw, const char *stra)
     WCHAR buf[1024];
 
     if (!stra) return 1;
-    MultiByteToWideChar(CP_ACP, 0, stra, -1, buf, sizeof(buf));
+    MultiByteToWideChar(CP_ACP, 0, stra, -1, buf, sizeof(buf)/sizeof(WCHAR));
     return lstrcmpW(strw, buf);
 }
 




More information about the wine-cvs mailing list