Skip to content

Commit

Permalink
[Fix] openmpt123: We need to verify DJGPP crt0 flags before modifying…
Browse files Browse the repository at this point in the history
… them. See r21742.

git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.31@21743 56274372-70c3-4bfc-bfc3-4c3a0b034d27
  • Loading branch information
manxorist committed Sep 25, 2024
1 parent 86ba3f8 commit 236d98d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openmpt123/openmpt123.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2203,8 +2203,8 @@ static int wmain( int wargc, wchar_t * wargv [] ) {
static int main( int argc, char * argv [] ) {
#endif
#if MPT_OS_DJGPP
_crt0_startup_flags &= ~_CRT0_FLAG_LOCK_MEMORY; /* disable automatic locking for all further memory allocations */
assert(mpt::platform::libc().is_ok());
_crt0_startup_flags &= ~_CRT0_FLAG_LOCK_MEMORY; /* disable automatic locking for all further memory allocations */
#endif /* MPT_OS_DJGPP */
std::vector<mpt::ustring> args;
#if MPT_OS_WINDOWS && defined(UNICODE)
Expand Down

0 comments on commit 236d98d

Please sign in to comment.