Skip to content

Commit

Permalink
Addendum to 027f7ed (Added security features to the loader)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccw808 committed Aug 1, 2016
1 parent 027f7ed commit 57455bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MTA10/loader/Utils.cpp
Expand Up @@ -114,10 +114,10 @@ HMODULE RemoteLoadLibrary(HANDLE hProcess, const WString& strLibPath)
// Ensure correct pthreadVC2.dll is gotted
CallRemoteFunction( hProcess, "SetDllDirectoryW", FromUTF8( ExtractPath( ToUTF8( strLibPath ) ) ) );
CallRemoteFunction( hProcess, "LoadLibraryW", strLibPath );
CheckService( CHECK_SERVICE_POST_CREATE );

// Allow GTA to continue
RemoveWinMainBlock( hProcess );
CheckService( CHECK_SERVICE_POST_CREATE );

/* Success */
return ( HINSTANCE )( 1 );
Expand Down

0 comments on commit 57455bb

Please sign in to comment.