Alexandre Julliard : winecrt0: Avoid A->W conversion in initialization code.
Alexandre Julliard
julliard at winehq.org
Wed Apr 27 16:12:12 CDT 2022
Module: wine
Branch: master
Commit: 7c6f6d27756687c3e2a3b8ca743f886e694142a2
URL: https://source.winehq.org/git/wine.git/?a=commit;h=7c6f6d27756687c3e2a3b8ca743f886e694142a2
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Apr 27 15:52:42 2022 +0200
winecrt0: Avoid A->W conversion in initialization code.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winecrt0/debug.c | 2 +-
dlls/winecrt0/unix_lib.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/winecrt0/debug.c b/dlls/winecrt0/debug.c
index 6e1866c7568..918fb67b140 100644
--- a/dlls/winecrt0/debug.c
+++ b/dlls/winecrt0/debug.c
@@ -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 );
diff --git a/dlls/winecrt0/unix_lib.c b/dlls/winecrt0/unix_lib.c
index 2e9b521a1e7..c86897b9905 100644
--- a/dlls/winecrt0/unix_lib.c
+++ b/dlls/winecrt0/unix_lib.c
@@ -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 );
}
More information about the wine-cvs
mailing list