Commit 7c6f6d27 authored by Alexandre Julliard's avatar Alexandre Julliard

winecrt0: Avoid A->W conversion in initialization code.

parent f68cccc8
......@@ -51,7 +51,7 @@ static void load_func( void **func, const char *name, void *def )
if (!*func)
{
DWORD err = GetLastError();
HMODULE module = GetModuleHandleA( "ntdll.dll" );
HMODULE module = GetModuleHandleW( L"ntdll.dll" );
void *proc = GetProcAddress( module, name );
InterlockedExchangePointer( func, proc ? proc : def );
SetLastError( err );
......
......@@ -35,7 +35,7 @@ static void load_func( void **func, const char *name, void *def )
{
if (!*func)
{
HMODULE module = GetModuleHandleA( "ntdll.dll" );
HMODULE module = GetModuleHandleW( L"ntdll.dll" );
void *proc = GetProcAddress( module, name );
InterlockedExchangePointer( func, proc ? proc : def );
}
......
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