diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c index 6fbdeb4..e9855b4 100644 --- a/dlls/opengl32/wgl.c +++ b/dlls/opengl32/wgl.c @@ -41,6 +41,7 @@ #endif #include "wine/library.h" #include "wine/debug.h" +#include "wine/exception.h" WINE_DEFAULT_DEBUG_CHANNEL(wgl); WINE_DECLARE_DEBUG_CHANNEL(opengl); @@ -634,7 +635,16 @@ const GLubyte * WINAPI wine_glGetString( GLenum name ) if (GL_EXTENSIONS != name) { ENTER_GL(); - ret = glGetString(name); + __TRY + { + ret = glGetString(name); + } + __EXCEPT_PAGE_FAULT + { + WARN( "glGetString crashed\n" ); + ret = 0; + } + __ENDTRY LEAVE_GL(); return ret; }