Marcus Meissner : kernel32/tests: Pass correct size to MultiBytetoWideChar.

Alexandre Julliard julliard at winehq.org
Mon Sep 15 06:54:57 CDT 2008


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

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Sun Sep 14 13:11:09 2008 +0200

kernel32/tests: Pass correct 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 8c76464..60d1f70 100644
--- a/dlls/kernel32/tests/actctx.c
+++ b/dlls/kernel32/tests/actctx.c
@@ -223,7 +223,7 @@ static BOOL create_wide_manifest(const char *filename, const char *manifest, BOO
     BOOL ret;
     int offset = (fBOM ? 0 : 1);
 
-    MultiByteToWideChar(CP_ACP, 0, manifest, -1, &wmanifest[1], (strlen(manifest)+1) * sizeof(WCHAR));
+    MultiByteToWideChar(CP_ACP, 0, manifest, -1, &wmanifest[1], (strlen(manifest)+1));
     wmanifest[0] = 0xfeff;
     if (fReverse)
     {




More information about the wine-cvs mailing list