X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bin%2Fwinvlc.c;h=874116035847621e195a4aae3262b5224efe6ac8;hb=4675f892ad1e6262b981f7618ede09b4c82205ab;hp=6e933856cfa2d55d775c2b1e04d07266af0c6158;hpb=275f357291af0e63e5ccd72c02e4c3327a435cb2;p=vlc diff --git a/bin/winvlc.c b/bin/winvlc.c index 6e933856cf..8741160358 100644 --- a/bin/winvlc.c +++ b/bin/winvlc.c @@ -46,6 +46,12 @@ static void check_crashdump(void); LONG WINAPI vlc_exception_filter(struct _EXCEPTION_POINTERS *lpExceptionInfo); # endif +typedef enum _HEAP_INFORMATION_CLASS { + HeapCompatibilityInformation, + HeapEnableTerminationOnCorruption +} HEAP_INFORMATION_CLASS; +WINBASEAPI BOOL WINAPI HeapSetInformation(HANDLE,HEAP_INFORMATION_CLASS,PVOID,SIZE_T); +#define HeapEnableTerminationOnCorruption (HEAP_INFORMATION_CLASS)1 #endif #ifndef UNDER_CE @@ -119,6 +125,7 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, { int argc, ret; #ifndef UNDER_CE + HeapSetInformation(NULL, HeapEnableTerminationOnCorruption, NULL, 0); wchar_t **wargv = CommandLineToArgvW (GetCommandLine (), &argc); if (wargv == NULL) return 1;