Mute any errors generated by logging from earlier in the function

This commit is contained in:
baldurk
2016-04-02 16:32:44 +02:00
parent a3325fbcff
commit 5888c09ba0
+2
View File
@@ -512,6 +512,8 @@ class OpenGLHook : LibraryHook
core = (a[1] & WGL_CONTEXT_CORE_PROFILE_BIT_ARB);
}
SetLastError(0);
HGLRC ret = glhooks.wglCreateContextAttribsARB_realfunc(dc, hShareContext, attribs);
DWORD err = GetLastError();