You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
Added patch to fix wglDescribePixelFormat when NULL is passed as pixel format descriptor.
This commit is contained in:
@@ -35,6 +35,7 @@ PATCHLIST := \
|
||||
dbghelp-KdHelp.ok \
|
||||
dsound-Fast_Mixer.ok \
|
||||
fonts-Missing_Fonts.ok \
|
||||
gdi32-MaxPixelFormats.ok \
|
||||
gdi32-MultiMonitor.ok \
|
||||
gdiplus-GdipCreateRegionRgnData.ok \
|
||||
imagehlp-BindImageEx.ok \
|
||||
@@ -469,6 +470,24 @@ fonts-Missing_Fonts.ok:
|
||||
echo '+ { "fonts-Missing_Fonts", "Torsten Kurbad / Erich E. Hoover", "Implement missing fonts expected by Silverlight. [rev 2]" },'; \
|
||||
) > fonts-Missing_Fonts.ok
|
||||
|
||||
# Patchset gdi32-MaxPixelFormats
|
||||
# |
|
||||
# | Included patches:
|
||||
# | * Return maximum number of pixel formats when NULL pointer is passed to wglDescribePixelFormat. [by Sebastian Lackner]
|
||||
# |
|
||||
# | This patchset fixes the following Wine bugs:
|
||||
# | * [#6176] wglDescribePixelFormat should return max index for NULL descriptor
|
||||
# |
|
||||
# | Modified files:
|
||||
# | * dlls/gdi32/dibdrv/opengl.c
|
||||
# |
|
||||
.INTERMEDIATE: gdi32-MaxPixelFormats.ok
|
||||
gdi32-MaxPixelFormats.ok:
|
||||
$(call APPLY_FILE,gdi32-MaxPixelFormats/0001-gdi32-Return-maximum-number-of-pixel-formats-when-NU.patch)
|
||||
@( \
|
||||
echo '+ { "gdi32-MaxPixelFormats", "Sebastian Lackner", "Return maximum number of pixel formats when NULL pointer is passed to wglDescribePixelFormat." },'; \
|
||||
) > gdi32-MaxPixelFormats.ok
|
||||
|
||||
# Patchset gdi32-MultiMonitor
|
||||
# |
|
||||
# | Included patches:
|
||||
|
@@ -0,0 +1,27 @@
|
||||
From 69bb805398645531fbc224319ab99dab29129c68 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Lackner <sebastian@fds-team.de>
|
||||
Date: Sat, 8 Nov 2014 11:32:11 +0100
|
||||
Subject: gdi32: Return maximum number of pixel formats when NULL pointer is
|
||||
passed to wglDescribePixelFormat.
|
||||
|
||||
---
|
||||
dlls/gdi32/dibdrv/opengl.c | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dlls/gdi32/dibdrv/opengl.c b/dlls/gdi32/dibdrv/opengl.c
|
||||
index 28a03f4..edbd2e9 100644
|
||||
--- a/dlls/gdi32/dibdrv/opengl.c
|
||||
+++ b/dlls/gdi32/dibdrv/opengl.c
|
||||
@@ -149,7 +149,8 @@ static int dibdrv_wglDescribePixelFormat( HDC hdc, int fmt, UINT size, PIXELFORM
|
||||
{
|
||||
int ret = sizeof(pixel_formats) / sizeof(pixel_formats[0]);
|
||||
|
||||
- if (fmt <= 0 || fmt > ret) return ret;
|
||||
+ if (!descr) return ret;
|
||||
+ if (fmt <= 0 || fmt > ret) return ret; /* FIXME: should this be 0? */
|
||||
if (size < sizeof(*descr)) return 0;
|
||||
|
||||
memset( descr, 0, sizeof(*descr) );
|
||||
--
|
||||
2.1.3
|
||||
|
4
patches/gdi32-MaxPixelFormats/definition
Normal file
4
patches/gdi32-MaxPixelFormats/definition
Normal file
@@ -0,0 +1,4 @@
|
||||
Author: Sebastian Lackner
|
||||
Subject: Return maximum number of pixel formats when NULL pointer is passed to wglDescribePixelFormat.
|
||||
Revision: 1
|
||||
Fixes: [6176] wglDescribePixelFormat should return max index for NULL descriptor
|
Reference in New Issue
Block a user