Henri Verbeet : wined3d: Return proper NULLs from CreateContext().
Alexandre Julliard
julliard at winehq.org
Fri Jul 24 08:49:55 CDT 2009
Module: wine
Branch: master
Commit: 9baf7864c5f6bc81d1588f97d0b805f09aab8446
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9baf7864c5f6bc81d1588f97d0b805f09aab8446
Author: Henri Verbeet <hverbeet at 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;
}
}
}
More information about the wine-cvs
mailing list