- driverName can be null, display info.DriverName instead
authorKamil Hornicek <kamil.hornicek@reactos.org>
Sun, 31 May 2009 21:54:34 +0000 (21:54 +0000)
committerKamil Hornicek <kamil.hornicek@reactos.org>
Sun, 31 May 2009 21:54:34 +0000 (21:54 +0000)
svn path=/trunk/; revision=41230

reactos/dll/win32/opengl32/wgl.c

index 9a6d334..9070195 100644 (file)
@@ -400,7 +400,7 @@ ROSGL_ICDForHDC( HDC hdc )
         {
             WCHAR Buffer[256];
             snwprintf(Buffer, sizeof(Buffer)/sizeof(WCHAR),
-                      L"Couldn't load driver \"%s\".", driverName);
+                      L"Couldn't load driver \"%s\".", info.DriverName);
             MessageBox(WindowFromDC( hdc ), Buffer,
                        L"OPENGL32.dll: Warning",
                        MB_OK | MB_ICONWARNING);