Skip to content

Commit 57455bb

Browse files
committed
Addendum to 027f7ed (Added security features to the loader)
1 parent 027f7ed commit 57455bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MTA10/loader/Utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ HMODULE RemoteLoadLibrary(HANDLE hProcess, const WString& strLibPath)
114114
// Ensure correct pthreadVC2.dll is gotted
115115
CallRemoteFunction( hProcess, "SetDllDirectoryW", FromUTF8( ExtractPath( ToUTF8( strLibPath ) ) ) );
116116
CallRemoteFunction( hProcess, "LoadLibraryW", strLibPath );
117-
CheckService( CHECK_SERVICE_POST_CREATE );
118117

119118
// Allow GTA to continue
120119
RemoveWinMainBlock( hProcess );
120+
CheckService( CHECK_SERVICE_POST_CREATE );
121121

122122
/* Success */
123123
return ( HINSTANCE )( 1 );

0 commit comments

Comments
 (0)