Skip to content

Commit 3affdc4

Browse files
committed
Disable _set_new_mode
One undiscovered issue was resolved after turning this on, but the remaining code should be aware of allocation issues when it comes to malloc.
1 parent 1fb80dc commit 3affdc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Shared/sdk/SharedUtil.Memory.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ namespace SharedUtil
187187
{
188188
#if defined(_WIN32)
189189
_set_new_handler(&HandleMemoryAllocationFailure);
190-
_set_new_mode(1 /* call _set_new_handler for malloc failure */);
190+
// _set_new_mode(1 /* call _set_new_handler for malloc failure */);
191191
#else
192192
std::set_new_handler(&HandleMemoryAllocationFailure);
193193
#endif

0 commit comments

Comments
 (0)