advapi32/tests: Trace the display name if CreateService() unexpectedly succeeds.

Francois Gouget fgouget at free.fr
Thu Mar 16 09:39:41 CDT 2017


Signed-off-by: Francois Gouget <fgouget at free.fr>
---

This was needed to diagnose bug 39240.
https://bugs.winehq.org/show_bug.cgi?id=39240

 dlls/advapi32/tests/service.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/advapi32/tests/service.c b/dlls/advapi32/tests/service.c
index c7e31548d6..ab7ae2e8fe 100644
--- a/dlls/advapi32/tests/service.c
+++ b/dlls/advapi32/tests/service.c
@@ -379,7 +379,7 @@ static void test_create_delete_svc(void)
         {
             svc_handle1 = CreateServiceA(scm_handle, servicename, display, 0, SERVICE_WIN32_OWN_PROCESS,
                                          SERVICE_DISABLED, 0, pathname, NULL, NULL, NULL, NULL, NULL);
-            ok(!svc_handle1, "Expected failure\n");
+            ok(!svc_handle1, "Expected failure for display name '%s'\n", display);
             ok(GetLastError() == ERROR_DUPLICATE_SERVICE_NAME,
                "Expected ERROR_DUPLICATE_SERVICE_NAME, got %d\n", GetLastError());
         }
-- 
2.11.0



More information about the wine-patches mailing list