Alexandre Julliard : shell32: Avoid using macros that cause gcc warnings.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jul 13 10:12:24 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 669780c24f85a3ea135d9b159395516400d6f8ef
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=669780c24f85a3ea135d9b159395516400d6f8ef

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Jul 13 15:50:20 2006 +0200

shell32: Avoid using macros that cause gcc warnings.

---

 dlls/shell32/brsfolder.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/shell32/brsfolder.c b/dlls/shell32/brsfolder.c
index 2ef6b76..2d73d9b 100644
--- a/dlls/shell32/brsfolder.c
+++ b/dlls/shell32/brsfolder.c
@@ -588,7 +588,7 @@ static BOOL BrsFolder_OnSetExpanded(brow
     while (item.hItem && !_ILIsEmpty(pidlCurrent)) {
         LPTV_ITEMDATA pItemData;
 
-        TreeView_GetItemW(info->hwndTreeView, &item);
+        SendMessageW(info->hwndTreeView, TVM_GETITEMW, 0, (LPARAM)&item);
         pItemData = (LPTV_ITEMDATA)item.lParam;
 
         if (_ILIsEqualSimple(pItemData->lpi, pidlCurrent)) {
@@ -596,7 +596,7 @@ static BOOL BrsFolder_OnSetExpanded(brow
             if (!_ILIsEmpty(pidlCurrent)) {
                 /* Only expand current node and move on to it's first child,
                  * if we didn't already reach the last SHITEMID */
-                TreeView_Expand(info->hwndTreeView, item.hItem, TVE_EXPAND);
+                SendMessageW(info->hwndTreeView, TVM_EXPAND, TVE_EXPAND, (LPARAM)item.hItem);
                 item.hItem = TreeView_GetChild(info->hwndTreeView, item.hItem);
             }
         } else {
@@ -623,7 +623,7 @@ static BOOL BrsFolder_OnSetSelectionW(br
 
     bResult = BrsFolder_OnSetExpanded(info, selection, is_str, &hItem);
     if (bResult)
-        TreeView_Select(info->hwndTreeView, hItem, TVGN_CARET);
+        SendMessageW(info->hwndTreeView, TVM_SELECTITEM, TVGN_CARET, (LPARAM)hItem );
     return bResult;
 }
 




More information about the wine-cvs mailing list