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