Rob Shearman : comctl32: Remove a useless assert from TREEVIEW_GetItemIndex .

Alexandre Julliard julliard at winehq.org
Sat Feb 16 09:57:23 CST 2008


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

Author: Rob Shearman <rob at codeweavers.com>
Date:   Fri Feb 15 10:05:41 2008 +0000

comctl32: Remove a useless assert from TREEVIEW_GetItemIndex.

---

 dlls/comctl32/treeview.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c
index 79f277c..89d7218 100644
--- a/dlls/comctl32/treeview.c
+++ b/dlls/comctl32/treeview.c
@@ -241,8 +241,6 @@ TREEVIEW_GetInfoPtr(HWND hwnd)
 static inline int
 TREEVIEW_GetItemIndex(const TREEVIEW_INFO *infoPtr, HTREEITEM handle)
 {
-    assert(infoPtr != NULL);
-
     return DPA_GetPtrIndex(infoPtr->items, handle);
 }
 




More information about the wine-cvs mailing list