wiaservc: Use wide-char string literals.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2020-10-03 20:28:28 +02:00 committed by Alexandre Julliard
parent 153dcacfc8
commit 144d898fba
1 changed files with 1 additions and 2 deletions

View File

@ -107,7 +107,6 @@ StartCount(void)
VOID WINAPI
ServiceMain(DWORD dwArgc, LPWSTR *lpszArgv)
{
static const WCHAR stisvc_nameW[] = {'s','t','i','s','v','c',0};
TRACE("(%d, %p)\n", dwArgc, lpszArgv);
stop_event = CreateEventW(NULL, TRUE, FALSE, NULL);
@ -116,7 +115,7 @@ ServiceMain(DWORD dwArgc, LPWSTR *lpszArgv)
return;
}
status_handle = RegisterServiceCtrlHandlerExW(stisvc_nameW, ServiceHandler, NULL);
status_handle = RegisterServiceCtrlHandlerExW(L"stisvc", ServiceHandler, NULL);
if (!status_handle) {
ERR("failed to register handler: %u\n", GetLastError());
return;