Commit eede9959 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

xolehlp: Use wide-char string literals.

parent f6e7f000
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment