Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions core/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ unsigned long __stdcall initial_thread( void* reserved ) {
return 0ul;
}

bool __stdcall DllMain( void* instance, unsigned long reason_to_call, void* reserved ) {
BOOL __stdcall DllMain( const void* instance, const unsigned long reason_to_call, const void* reserved ) {
if ( reason_to_call == DLL_PROCESS_ATTACH ) {
CreateThread( 0, 0, initial_thread, instance, 0, 0 );
if ( const auto handle = CreateThread( 0, 0, initial_thread, instance, 0, 0 ) )
CloseHandle( handle );
}

return true;
return TRUE;
}