From 6f3d760cbe4bd7771cd86d425bcf4a8fbf20c677 Mon Sep 17 00:00:00 2001 From: dmex Date: Wed, 17 Mar 2021 06:51:15 +1100 Subject: [PATCH] Update PhLoadLibrarySafe return type --- phlib/include/phutil.h | 2 +- phlib/util.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/phlib/include/phutil.h b/phlib/include/phutil.h index cd3d44cc4..164fdfd04 100644 --- a/phlib/include/phutil.h +++ b/phlib/include/phutil.h @@ -1493,7 +1493,7 @@ PhGetClassObject( PHLIBAPI _Ret_maybenull_ -HMODULE +PVOID PhLoadLibrarySafe( _In_ PCWSTR LibFileName ); diff --git a/phlib/util.c b/phlib/util.c index 66fc8a685..a9c6a3f2d 100644 --- a/phlib/util.c +++ b/phlib/util.c @@ -7834,12 +7834,12 @@ HRESULT PhGetClassObject( @return HMODULE to the library on success, null on failure. */ _Ret_maybenull_ -HMODULE +PVOID PhLoadLibrarySafe( _In_ PCWSTR LibFileName ) { - HMODULE baseAddress; + PVOID baseAddress; // // Force LOAD_LIBRARY_SEARCH_SYSTEM32. If the library file name is a fully