Alexandre Julliard : advapi32: Always pass a valid argv pointer to a service even if there are no arguments .
Alexandre Julliard
julliard at winehq.org
Thu Sep 25 07:13:32 CDT 2008
Module: wine
Branch: master
Commit: cd3805336efd5d210474f6947f06d278985dff76
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cd3805336efd5d210474f6947f06d278985dff76
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Sep 25 11:19:39 2008 +0200
advapi32: Always pass a valid argv pointer to a service even if there are no arguments.
---
dlls/advapi32/service.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c
index d5a2c31..da2b81f 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;
More information about the wine-cvs
mailing list