winecrt0: Avoid A->W conversion in initialization code.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f68cccc825
commit
7c6f6d2775
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue