opengl32: Use boolean return values in boolean functions

André Hentschel nerv at dawncrow.de
Mon Apr 28 13:01:48 CDT 2014


---
 dlls/opengl32/make_opengl | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/opengl32/make_opengl b/dlls/opengl32/make_opengl
index b0b9c00..ab633b2 100755
--- a/dlls/opengl32/make_opengl
+++ b/dlls/opengl32/make_opengl
@@ -338,6 +338,10 @@ sub generate_null_func($$)
     {
         $ret .= " return GL_INVALID_OPERATION;";
     }
+    elsif ($func_ref->[0] eq "BOOL")
+    {
+        $ret .= " return FALSE;";
+    }
     elsif ($func_ref->[0] ne "void")
     {
         $ret .= " return 0;";
-- 
1.8.1.2





More information about the wine-patches mailing list