Browse Source

win32: tolerate extra error flags on Vista

This should not adversely affect LibVLC: more errors cases will lead to
error code returns instead of abnormal termination. It is not strictly
semantically correct though (update to Win7 or above if you care).
pull/35/head
Rémi Denis-Courmont 11 years ago
parent
commit
ddbe9dc37c
  1. 3
      src/win32/plugin.c

3
src/win32/plugin.c

@ -57,7 +57,8 @@ static BOOL WINAPI SetThreadErrorModeFallback(DWORD mode, DWORD *oldmode)
if (GetErrorModeReal != NULL)
curmode = GetErrorModeReal();
# endif
if ((mode & SEM_FAILCRITICALERRORS) != (curmode & SEM_FAILCRITICALERRORS))
/* Extra flags should be OK. Missing flags are NOT OK. */
if ((mode & curmode) != mode)
return FALSE;
if (oldmode != NULL)
*oldmode = curmode;

Loading…
Cancel
Save