mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 21:04:10 +00:00
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:
parent
153dcacfc8
commit
144d898fba
|
@ -107,7 +107,6 @@ StartCount(void)
|
||||||
VOID WINAPI
|
VOID WINAPI
|
||||||
ServiceMain(DWORD dwArgc, LPWSTR *lpszArgv)
|
ServiceMain(DWORD dwArgc, LPWSTR *lpszArgv)
|
||||||
{
|
{
|
||||||
static const WCHAR stisvc_nameW[] = {'s','t','i','s','v','c',0};
|
|
||||||
TRACE("(%d, %p)\n", dwArgc, lpszArgv);
|
TRACE("(%d, %p)\n", dwArgc, lpszArgv);
|
||||||
|
|
||||||
stop_event = CreateEventW(NULL, TRUE, FALSE, NULL);
|
stop_event = CreateEventW(NULL, TRUE, FALSE, NULL);
|
||||||
|
@ -116,7 +115,7 @@ ServiceMain(DWORD dwArgc, LPWSTR *lpszArgv)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
status_handle = RegisterServiceCtrlHandlerExW(stisvc_nameW, ServiceHandler, NULL);
|
status_handle = RegisterServiceCtrlHandlerExW(L"stisvc", ServiceHandler, NULL);
|
||||||
if (!status_handle) {
|
if (!status_handle) {
|
||||||
ERR("failed to register handler: %u\n", GetLastError());
|
ERR("failed to register handler: %u\n", GetLastError());
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue