[PATCH] fixed size to MultiByteToWideChar
Marcus Meissner
marcus at jet.franken.de
Wed Aug 1 01:13:07 CDT 2007
Hi,
use number of chars, not bytes.
Ciao, Marcus
---
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
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);
}
--
1.4.3.4
More information about the wine-patches
mailing list