Dan Kegel : advapi32/tests: Fix undefined memory references in registry.c.

Alexandre Julliard julliard at winehq.org
Tue Oct 30 08:32:49 CDT 2007


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

Author: Dan Kegel <dank at kegel.com>
Date:   Mon Oct 29 10:47:41 2007 -0700

advapi32/tests: Fix undefined memory references in registry.c.

---

 dlls/advapi32/tests/registry.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/advapi32/tests/registry.c b/dlls/advapi32/tests/registry.c
index cdd4835..017dab3 100644
--- a/dlls/advapi32/tests/registry.c
+++ b/dlls/advapi32/tests/registry.c
@@ -282,8 +282,8 @@ static void test_hkey_main_Value_W(LPCWSTR name, LPCWSTR string,
         string=nW;
     }
     ok(memcmp(value, string, cbData) == 0, "RegQueryValueExW failed: %s/%d != %s/%d\n",
-       wine_debugstr_wn(value, cbData), cbData,
-       wine_debugstr_wn(string, full_byte_len), full_byte_len);
+       wine_debugstr_wn(value, cbData / sizeof(WCHAR)), cbData,
+       wine_debugstr_wn(string, full_byte_len / sizeof(WCHAR)), full_byte_len / sizeof(WCHAR));
     HeapFree(GetProcessHeap(), 0, value);
 }
 




More information about the wine-cvs mailing list