]> git.saurik.com Git - wxWidgets.git/commitdiff
really fixed crash with strange HDN_GETDISPINFOWs under XP
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 21 Apr 2004 15:01:07 +0000 (15:01 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 21 Apr 2004 15:01:07 +0000 (15:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/listctrl.cpp

index 2ea528e81753ad68752d4451262ec7bfaeb101c9..5fc412bb6b8ccb23625a254f43fed6290cead298 100644 (file)
@@ -1780,7 +1780,7 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
                     // there's a GPF in Windows.
                     // By returning TRUE here, we avoid further processing
                     // of this strange message.
-                    if ( info->iItem >= GetColumnCount() )
+                    if ( (unsigned)info->iItem >= (unsigned)GetColumnCount() )
                         return TRUE;
                 }
                 // fall through