From: José Fonseca Date: Tue, 28 Apr 2009 18:46:56 +0000 (+0100) Subject: wgl: UINT_PTR null value is an integral type, so return 0 instead of NULL. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb9ea58f9502c7e54d03e3c2c21d20749f796c7c;p=mesa.git wgl: UINT_PTR null value is an integral type, so return 0 instead of NULL. --- diff --git a/src/gallium/state_trackers/wgl/shared/stw_context.c b/src/gallium/state_trackers/wgl/shared/stw_context.c index 0b5dd78ec63..473e3308c6c 100644 --- a/src/gallium/state_trackers/wgl/shared/stw_context.c +++ b/src/gallium/state_trackers/wgl/shared/stw_context.c @@ -276,12 +276,12 @@ stw_get_current_context( void ) struct stw_context *ctx; if(!glcurctx) - return NULL; + return 0; ctx = (struct stw_context *)glcurctx->DriverCtx; assert(ctx); if(!ctx) - return NULL; + return 0; return ctx->hglrc; }