Ken Thomases : winex11: Don' t trace a garbage value or read past end of caller' s array in X11DRV_wglChoosePixelFormatARB().

Alexandre Julliard julliard at winehq.org
Fri Sep 20 14:21:30 CDT 2013


Module: wine
Branch: master
Commit: cf973bd28dfc3bb2b274ce2de72ec6848767b29b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cf973bd28dfc3bb2b274ce2de72ec6848767b29b

Author: Ken Thomases <ken at codeweavers.com>
Date:   Thu Sep 19 20:37:16 2013 -0500

winex11: Don't trace a garbage value or read past end of caller's array in X11DRV_wglChoosePixelFormatARB().

---

 dlls/winex11.drv/opengl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index e28302e..3e8480b 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -2520,7 +2520,7 @@ static BOOL X11DRV_wglChoosePixelFormatARB( HDC hdc, const int *piAttribIList, c
                 {
                     piFormats[pfmt_it++] = i + 1;
                     TRACE("at %d/%d found FBCONFIG_ID 0x%x (%d)\n",
-                          it + 1, nCfgs, fmt_id, piFormats[pfmt_it]);
+                          it + 1, nCfgs, fmt_id, i + 1);
                     break;
                 }
             }




More information about the wine-cvs mailing list