Stefan Leichter : advapi32: Fix the failing QueryServiceConfig2 test on platforms win2k3 and vista.

Alexandre Julliard julliard at winehq.org
Tue Feb 5 06:33:41 CST 2008


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

Author: Stefan Leichter <Stefan.Leichter at camline.com>
Date:   Fri Feb  1 22:24:00 2008 +0100

advapi32: Fix the failing QueryServiceConfig2 test on platforms win2k3 and vista.

---

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

diff --git a/dlls/advapi32/tests/service.c b/dlls/advapi32/tests/service.c
index cf5b809..8c71715 100644
--- a/dlls/advapi32/tests/service.c
+++ b/dlls/advapi32/tests/service.c
@@ -938,7 +938,8 @@ static void test_queryconfig2(void)
     SetLastError(0xdeadbeef);
     ret = pQueryServiceConfig2A(svc_handle, SERVICE_CONFIG_DESCRIPTION,NULL,sizeof(SERVICE_DESCRIPTIONA),&needed);
     ok(!ret, "expected QueryServiceConfig2A to fail\n");
-    ok(ERROR_INVALID_ADDRESS == GetLastError(), "expected error ERROR_INVALID_ADDRESS, got %d\n", GetLastError());
+    ok((ERROR_INVALID_ADDRESS == GetLastError()) || (ERROR_INSUFFICIENT_BUFFER == GetLastError()),
+       "expected error ERROR_INVALID_ADDRESS or ERROR_INSUFFICIENT_BUFFER, got %d\n", GetLastError());
 
     SetLastError(0xdeadbeef);
     ret = pQueryServiceConfig2A(svc_handle, SERVICE_CONFIG_DESCRIPTION,NULL,sizeof(SERVICE_DESCRIPTIONA),NULL);




More information about the wine-cvs mailing list