From c61df085432c5abe855c8df6043e46af1bf678ef Mon Sep 17 00:00:00 2001 From: Jimmy Rentz Date: Fri, 15 Mar 2013 22:18:44 -0400 Subject: [PATCH] advapi32: Fix segfault in OpenService. --- dlls/advapi32/service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c index 4c694b12d71..b591449f1bb 100644 --- a/dlls/advapi32/service.c +++ b/dlls/advapi32/service.c @@ -950,7 +950,7 @@ DWORD SERV_OpenServiceW( SC_HANDLE hSCManager, LPCWSTR lpServiceName, __ENDTRY if (err != ERROR_SUCCESS) - handle = 0; + *handle = 0; TRACE("returning %p\n", *handle); return err;