st/wgl: Return NULL for NULL HDCs in wglGetExtensionsStringARB.
[mesa.git] / src / gallium / state_trackers / wgl / stw_ext_extensionsstring.c
index ecb326f1cf6c9dcb6ef6660ba0a909cebb1184bf..7cad49c9f840efc3f62e5b1911676012186c5857 100644 (file)
@@ -47,7 +47,9 @@ WINGDIAPI const char * APIENTRY
 wglGetExtensionsStringARB(
    HDC hdc )
 {
-   (void) hdc;
+   if (!hdc) {
+      return NULL;
+   }
 
    return stw_extension_string;
 }