From cd3805336efd5d210474f6947f06d278985dff76 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 25 Sep 2008 11:19:39 +0200 Subject: [PATCH] advapi32: Always pass a valid argv pointer to a service even if there are no arguments. --- dlls/advapi32/service.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c index d5a2c31fe80..da2b81f163a 100644 --- a/dlls/advapi32/service.c +++ b/dlls/advapi32/service.c @@ -383,16 +383,8 @@ static DWORD WINAPI service_thread(LPVOID arg) len += strlenW(&str[len]) + 1; argc++; } + len++; - if (!argc) - { - if (info->unicode) - info->proc.w(0, NULL); - else - info->proc.a(0, NULL); - return 0; - } - if (info->unicode) { LPWSTR *argv, p;