advapi32: Fix the length written to the pipe for the start message.

oldstable
Alexandre Julliard 2008-01-07 12:18:11 +01:00
parent 44dbb07441
commit 781c3b9c6a
1 changed files with 1 additions and 1 deletions

View File

@ -497,7 +497,7 @@ static BOOL service_send_start_message(HANDLE pipe, LPCWSTR *argv, DWORD argc)
}
*p=0;
r = WriteFile(pipe, ssi, sizeof *ssi + len*sizeof(WCHAR), &count, NULL);
r = WriteFile(pipe, ssi, sizeof *ssi + (len-1)*sizeof(WCHAR), &count, NULL);
if (r)
{
r = ReadFile(pipe, &result, sizeof result, &count, NULL);