Commit a93be488 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

win32: only call SetErrorMode() if needed

This call is only necessary on Win2k8 and earlier.
parent b30a5bd0
......@@ -48,7 +48,7 @@ static void usage (const char *path)
int main (int argc, char *argv[])
{
#ifdef _WIN32
#if defined(_WIN32) && (_WIN32_WINNT < _WIN32_WINNT_WIN7)
SetErrorMode(SEM_FAILCRITICALERRORS);
#endif
#ifdef HAVE_GETOPT_H
......
......@@ -129,7 +129,9 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
putenv("VLC_DATA_PATH=Z:"TOP_SRCDIR"/share");
#endif
#if (_WIN32_WINNT < _WIN32_WINNT_WIN7)
SetErrorMode(SEM_FAILCRITICALERRORS);
#endif
HeapSetInformation(NULL, HeapEnableTerminationOnCorruption, NULL, 0);
/* SetProcessDEPPolicy, SetDllDirectory, & Co. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment