Roderick Colenbrander : opengl32: Fix another wglCreateContextAttribsARB test on Nvidia.

Alexandre Julliard julliard at winehq.org
Mon Nov 23 08:49:55 CST 2009


Module: wine
Branch: master
Commit: ddaf23842b74ff762b79658ce1147c707a6daeaf
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ddaf23842b74ff762b79658ce1147c707a6daeaf

Author: Roderick Colenbrander <thunderbird2k at gmail.com>
Date:   Mon Nov 23 14:13:07 2009 +0100

opengl32: Fix another wglCreateContextAttribsARB test on Nvidia.

---

 dlls/opengl32/tests/opengl.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/opengl32/tests/opengl.c b/dlls/opengl32/tests/opengl.c
index 2850117..4709685 100644
--- a/dlls/opengl32/tests/opengl.c
+++ b/dlls/opengl32/tests/opengl.c
@@ -570,7 +570,9 @@ static void test_opengl3(HDC hdc)
         gl3Ctx = pwglCreateContextAttribsARB((HDC)0xdeadbeef, 0, 0);
         ok(gl3Ctx == 0, "pwglCreateContextAttribsARB using an invalid HDC passed\n");
         error = GetLastError();
-        todo_wine ok(error == ERROR_DC_NOT_FOUND, "Expected ERROR_DC_NOT_FOUND, got error=%x\n", error);
+        todo_wine ok(error == ERROR_DC_NOT_FOUND ||
+                     broken(HRESULT_FROM_WIN32(ERROR_INVALID_DATA)), /* Nvidia Vista + Win7 */
+                     "Expected ERROR_DC_NOT_FOUND, got error=%x\n", error);
         wglDeleteContext(gl3Ctx);
     }
 




More information about the wine-cvs mailing list