xolehlp: 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:30 +02:00 committed by Alexandre Julliard
parent f6e7f00010
commit eede9959ed
1 changed files with 1 additions and 2 deletions

View File

@ -657,11 +657,10 @@ static BOOL is_local_machineA( const CHAR *server )
}
static BOOL is_local_machineW( const WCHAR *server )
{
static const WCHAR dotW[] = {'.',0};
WCHAR buffer[MAX_COMPUTERNAME_LENGTH + 1];
DWORD len = ARRAY_SIZE( buffer );
if (!server || !wcscmp( server, dotW )) return TRUE;
if (!server || !wcscmp( server, L"." )) return TRUE;
if (GetComputerNameW( buffer, &len ) && !wcsicmp( server, buffer )) return TRUE;
return FALSE;
}