Henri Verbeet : wined3d: Return proper NULLs from CreateContext().
Module: wine Branch: master Commit: 9baf7864c5f6bc81d1588f97d0b805f09aab8446 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9baf7864c5f6bc81d1588f97d0... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Fri Jul 24 10:44:18 2009 +0200 wined3d: Return proper NULLs from CreateContext(). --- dlls/wined3d/context.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index 336c4d7..413c1d6 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -1164,7 +1164,7 @@ WineD3DContext *CreateContext(IWineD3DDeviceImpl *This, IWineD3DSurfaceImpl *tar /* If we still don't have a pixel format, something is very wrong as ChoosePixelFormat barely fails */ if(!iPixelFormat) { ERR("Can't find a suitable iPixelFormat\n"); - return FALSE; + return NULL; } DescribePixelFormat(hdc, iPixelFormat, sizeof(pfd), &pfd); @@ -1183,7 +1183,7 @@ WineD3DContext *CreateContext(IWineD3DDeviceImpl *This, IWineD3DSurfaceImpl *tar if(!res) { ERR("wglSetPixelFormatWINE failed on HDC=%p for iPixelFormat=%d\n", hdc, iPixelFormat); - return FALSE; + return NULL; } } else if(oldPixelFormat) { /* OpenGL doesn't allow pixel format adjustments. Print an error and continue using the old format. @@ -1191,7 +1191,7 @@ WineD3DContext *CreateContext(IWineD3DDeviceImpl *This, IWineD3DSurfaceImpl *tar ERR("HDC=%p is already set to iPixelFormat=%d and OpenGL doesn't allow changes!\n", hdc, oldPixelFormat); } else { ERR("SetPixelFormat failed on HDC=%p for iPixelFormat=%d\n", hdc, iPixelFormat); - return FALSE; + return NULL; } } }
participants (1)
-
Alexandre Julliard