Alexandre Julliard : advapi32/tests: Don' t test the contents of an uninitialized buffer.

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


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Jul 31 22:35:30 2007 +0200

advapi32/tests: Don't test the contents of an uninitialized buffer.

---

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

diff --git a/dlls/advapi32/tests/service.c b/dlls/advapi32/tests/service.c
index 48e2f79..76d147f 100644
--- a/dlls/advapi32/tests/service.c
+++ b/dlls/advapi32/tests/service.c
@@ -685,11 +685,11 @@ static void test_get_servicekeyname(void)
        GetLastError() == ERROR_IO_PENDING /* W2K */ ||
        GetLastError() == 0xdeadbeef       /* NT4, XP, Vista */,
        "Expected ERROR_SUCCESS, ERROR_IO_PENDING or 0xdeadbeef, got %d\n", GetLastError());
-    todo_wine
+    if (ret)
     {
-    ok(lstrlen(servicename) == tempsize/2,
-       "Expected the buffer to be twice the length of the string\n") ;
-    ok(!lstrcmpi(servicename, spooler), "Expected %s, got %s\n", spooler, servicename);
+        ok(lstrlen(servicename) == tempsize/2,
+           "Expected the buffer to be twice the length of the string\n") ;
+        ok(!lstrcmpi(servicename, spooler), "Expected %s, got %s\n", spooler, servicename);
     }
 
     CloseServiceHandle(scm_handle);




More information about the wine-cvs mailing list