Frédéric Delanoy : ddraw: Return appropriate value for non matching 32 bit pixel format in PixelFormat_DD2WineD3D (coverity).
Module: wine Branch: master Commit: 80d30100993013dfdaa32d0e6c938246b5f75cbe URL: http://source.winehq.org/git/wine.git/?a=commit;h=80d30100993013dfdaa32d0e6c... Author: Frédéric Delanoy <frederic.delanoy(a)gmail.com> Date: Fri Nov 23 19:36:14 2012 +0100 ddraw: Return appropriate value for non matching 32 bit pixel format in PixelFormat_DD2WineD3D (coverity). --- dlls/ddraw/utils.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/ddraw/utils.c b/dlls/ddraw/utils.c index d990440..1964452 100644 --- a/dlls/ddraw/utils.c +++ b/dlls/ddraw/utils.c @@ -446,6 +446,7 @@ enum wined3d_format_id PixelFormat_DD2WineD3D(const DDPIXELFORMAT *DDPixelFormat } WARN("32 bit RGB pixel format does not match.\n"); + return WINED3DFMT_UNKNOWN; default: WARN("Invalid dwRGBBitCount in Pixelformat structure.\n");
participants (1)
-
Alexandre Julliard