comctl32: Indentation fix (1 of 2)

Andrew Talbot andrew.talbot at talbotville.com
Tue May 27 16:10:53 CDT 2008


Changelog:
    comctl32: Indentation fix.

diff --git a/dlls/comctl32/datetime.c b/dlls/comctl32/datetime.c
index b46c495..4b022af 100644
--- a/dlls/comctl32/datetime.c
+++ b/dlls/comctl32/datetime.c
@@ -171,7 +171,7 @@ DATETIME_SetSystemTime (DATETIME_INFO *infoPtr, DWORD flag, const SYSTEMTIME *lp
           lprgSysTimeArray->wSecond > 59 ||
           lprgSysTimeArray->wMilliseconds > 999
           )
-        return 0;
+            return 0;
 
         infoPtr->dateValid = TRUE;
         MONTHCAL_CopyTime (lprgSysTimeArray, &infoPtr->date);
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index ab9cefe..a38f671 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -9970,23 +9970,23 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
   case WM_WINDOWPOSCHANGED:
       if (!(((WINDOWPOS *)lParam)->flags & SWP_NOSIZE)) 
       {
-      UINT uView = infoPtr->dwStyle & LVS_TYPEMASK;
-	  SetWindowPos(infoPtr->hwndSelf, 0, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOACTIVATE |
-		       SWP_NOZORDER | SWP_NOMOVE | SWP_NOSIZE);
+          UINT uView = infoPtr->dwStyle & LVS_TYPEMASK;
+          SetWindowPos(infoPtr->hwndSelf, 0, 0, 0, 0, 0, SWP_FRAMECHANGED | SWP_NOACTIVATE |
+                       SWP_NOZORDER | SWP_NOMOVE | SWP_NOSIZE);
 
-      if ((infoPtr->dwStyle & LVS_OWNERDRAWFIXED) && (uView == LVS_REPORT))
-      {
-          MEASUREITEMSTRUCT mis;
-          mis.CtlType = ODT_LISTVIEW;
-          mis.CtlID = GetWindowLongPtrW(infoPtr->hwndSelf, GWLP_ID);
-          mis.itemID = -1;
-          mis.itemWidth = 0;
-          mis.itemData = 0;
-          mis.itemHeight= infoPtr->nItemHeight;
-          SendMessageW(infoPtr->hwndNotify, WM_MEASUREITEM, mis.CtlID, (LPARAM)&mis);
-          if (infoPtr->nItemHeight != max(mis.itemHeight, 1))
-              infoPtr->nMeasureItemHeight = infoPtr->nItemHeight = max(mis.itemHeight, 1);
-      }
+          if ((infoPtr->dwStyle & LVS_OWNERDRAWFIXED) && (uView == LVS_REPORT))
+          {
+              MEASUREITEMSTRUCT mis;
+              mis.CtlType = ODT_LISTVIEW;
+              mis.CtlID = GetWindowLongPtrW(infoPtr->hwndSelf, GWLP_ID);
+              mis.itemID = -1;
+              mis.itemWidth = 0;
+              mis.itemData = 0;
+              mis.itemHeight= infoPtr->nItemHeight;
+              SendMessageW(infoPtr->hwndNotify, WM_MEASUREITEM, mis.CtlID, (LPARAM)&mis);
+              if (infoPtr->nItemHeight != max(mis.itemHeight, 1))
+                  infoPtr->nMeasureItemHeight = infoPtr->nItemHeight = max(mis.itemHeight, 1);
+          }
 
 	  LISTVIEW_UpdateSize(infoPtr);
 	  LISTVIEW_UpdateScroll(infoPtr);
diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c
index a9647cd..70ab542 100644
--- a/dlls/comctl32/monthcal.c
+++ b/dlls/comctl32/monthcal.c
@@ -357,8 +357,9 @@ static void MONTHCAL_DrawDay(const MONTHCAL_INFO *infoPtr, HDC hdc, int day, int
     r2.top    = r.top;
     r2.right  = r.left + 0.5 * infoPtr->textWidth;
     r2.bottom = r.bottom;
-    if(haveSelectedDay) FillRect(hdc, &r2, hbr);
-      haveSelectedDay = TRUE;
+    if(haveSelectedDay)
+        FillRect(hdc, &r2, hbr);
+    haveSelectedDay = TRUE;
   } else {
     haveSelectedDay = FALSE;
   }
diff --git a/dlls/comctl32/pager.c b/dlls/comctl32/pager.c
index 11a78a9..bfbb3cd 100644
--- a/dlls/comctl32/pager.c
+++ b/dlls/comctl32/pager.c
@@ -1069,11 +1069,11 @@ PAGER_MouseMove (PAGER_INFO* infoPtr, INT keys, INT x, INT y)
             }
 
             /* Notify parent of released mouse capture */
-        	memset(&nmhdr, 0, sizeof(NMHDR));
-        	nmhdr.hwndFrom = infoPtr->hwndSelf;
-        	nmhdr.idFrom   = GetWindowLongPtrW(infoPtr->hwndSelf, GWLP_ID);
-        	nmhdr.code = NM_RELEASEDCAPTURE;
-		SendMessageW(infoPtr->hwndNotify, WM_NOTIFY, nmhdr.idFrom, (LPARAM)&nmhdr);
+            memset(&nmhdr, 0, sizeof(NMHDR));
+            nmhdr.hwndFrom = infoPtr->hwndSelf;
+            nmhdr.idFrom   = GetWindowLongPtrW(infoPtr->hwndSelf, GWLP_ID);
+            nmhdr.code = NM_RELEASEDCAPTURE;
+            SendMessageW(infoPtr->hwndNotify, WM_NOTIFY, nmhdr.idFrom, (LPARAM)&nmhdr);
         }
         if (IsWindow(infoPtr->hwndSelf))
             KillTimer(infoPtr->hwndSelf, TIMERID1);



More information about the wine-patches mailing list