shell32: Indentation fix
Andrew Talbot
andrew.talbot at talbotville.com
Thu Dec 20 15:55:34 CST 2012
Changelog:
shell32: Indentation fix.
diff --git a/dlls/shell32/classes.c b/dlls/shell32/classes.c
index a56af62..10ff970 100644
--- a/dlls/shell32/classes.c
+++ b/dlls/shell32/classes.c
@@ -56,9 +56,9 @@ BOOL HCR_MapTypeToValueW(LPCWSTR szExtension, LPWSTR szFileType, LONG len, BOOL
TRACE("%s %p\n", debugstr_w(szExtension), szFileType);
- /* added because we do not want to have double dots */
- if (szExtension[0] == '.')
- bPrependDot = 0;
+ /* added because we do not want to have double dots */
+ if (szExtension[0] == '.')
+ bPrependDot = 0;
if (bPrependDot)
szTemp[0] = '.';
@@ -90,9 +90,9 @@ BOOL HCR_MapTypeToValueA(LPCSTR szExtension, LPSTR szFileType, LONG len, BOOL bP
TRACE("%s %p\n", szExtension, szFileType);
- /* added because we do not want to have double dots */
- if (szExtension[0] == '.')
- bPrependDot = 0;
+ /* added because we do not want to have double dots */
+ if (szExtension[0] == '.')
+ bPrependDot = 0;
if (bPrependDot)
szTemp[0] = '.';
@@ -252,7 +252,7 @@ static BOOL HCR_RegGetDefaultIconA(HKEY hkey, LPSTR szDest, DWORD len, int* pico
if (!RegQueryValueExA(hkey, NULL, 0, &dwType, (LPBYTE)szDest, &len))
{
- if (dwType == REG_EXPAND_SZ)
+ if (dwType == REG_EXPAND_SZ)
{
ExpandEnvironmentStringsA(szDest, sTemp, MAX_PATH);
lstrcpynA(szDest, sTemp, len);
diff --git a/dlls/shell32/control.c b/dlls/shell32/control.c
index 505aff5..659a871 100644
--- a/dlls/shell32/control.c
+++ b/dlls/shell32/control.c
@@ -759,7 +759,7 @@ static void Control_DoLaunch(CPanel* panel, HWND hWnd, LPCWSTR wszCmd)
}
}
if (ch == '\0') break;
- beg = end + 1;
+ beg = end + 1;
if (ch == ' ') while (end[1] == ' ') end++;
}
end++;
diff --git a/dlls/shell32/debughlp.c b/dlls/shell32/debughlp.c
index f5d64c3..3d417f8 100644
--- a/dlls/shell32/debughlp.c
+++ b/dlls/shell32/debughlp.c
@@ -259,21 +259,21 @@ void _dbg_ILSimpleGetText (LPCITEMIDLIST pidl, LPSTR szOut, UINT uOutSize)
void pdump (LPCITEMIDLIST pidl)
{
- LPCITEMIDLIST pidltemp = pidl;
+ LPCITEMIDLIST pidltemp = pidl;
- if (!TRACE_ON(pidl)) return;
+ if (!TRACE_ON(pidl)) return;
- if (! pidltemp)
- {
- MESSAGE ("-------- pidl=NULL (Desktop)\n");
- }
- else
- {
- MESSAGE ("-------- pidl=%p\n", pidl);
- if (pidltemp->mkid.cb)
- {
- do
- {
+ if (! pidltemp)
+ {
+ MESSAGE ("-------- pidl=NULL (Desktop)\n");
+ }
+ else
+ {
+ MESSAGE ("-------- pidl=%p\n", pidl);
+ if (pidltemp->mkid.cb)
+ {
+ do
+ {
if (_ILIsUnicode(pidltemp))
{
DWORD dwAttrib = 0;
@@ -309,16 +309,16 @@ void pdump (LPCITEMIDLIST pidl)
debugstr_a(szName), debugstr_a(szLongName), debugstr_a(szShortName));
}
- pidltemp = _dbg_ILGetNext(pidltemp);
+ pidltemp = _dbg_ILGetNext(pidltemp);
- } while (pidltemp && pidltemp->mkid.cb);
- }
- else
- {
- MESSAGE ("empty pidl (Desktop)\n");
- }
- pcheck(pidl);
- }
+ } while (pidltemp && pidltemp->mkid.cb);
+ }
+ else
+ {
+ MESSAGE ("empty pidl (Desktop)\n");
+ }
+ pcheck(pidl);
+ }
}
static void dump_pidl_hex( LPCITEMIDLIST pidl )
diff --git a/dlls/shell32/enumidlist.c b/dlls/shell32/enumidlist.c
index 8ee789b..6c705af 100644
--- a/dlls/shell32/enumidlist.c
+++ b/dlls/shell32/enumidlist.c
@@ -45,8 +45,8 @@ BOOL AddToEnumList(IEnumIDListImpl *This, LPITEMIDLIST pidl)
TRACE("(%p)->(pidl=%p)\n",This,pidl);
- if (!This || !pidl)
- return FALSE;
+ if (!This || !pidl)
+ return FALSE;
pNew = SHAlloc(sizeof(*pNew));
if(pNew)
diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c
index 4f488ca..7738694 100644
--- a/dlls/shell32/shlview.c
+++ b/dlls/shell32/shlview.c
@@ -380,19 +380,19 @@ static BOOL ShellView_CreateList (IShellViewImpl * This)
This->ListViewSortInfo.nHeaderID = -1;
This->ListViewSortInfo.nLastHeaderID = -1;
- if (This->FolderSettings.fFlags & FWF_DESKTOP) {
- /*
- * FIXME: look at the registry value
- * HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ListviewShadow
- * and activate drop shadows if necessary
- */
- if (0)
- SendMessageW(This->hWndList, LVM_SETTEXTBKCOLOR, 0, CLR_NONE);
- else
- SendMessageW(This->hWndList, LVM_SETTEXTBKCOLOR, 0, GetSysColor(COLOR_DESKTOP));
-
- SendMessageW(This->hWndList, LVM_SETTEXTCOLOR, 0, RGB(255,255,255));
- }
+ if (This->FolderSettings.fFlags & FWF_DESKTOP) {
+ /*
+ * FIXME: look at the registry value
+ * HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ListviewShadow
+ * and activate drop shadows if necessary
+ */
+ if (0)
+ SendMessageW(This->hWndList, LVM_SETTEXTBKCOLOR, 0, CLR_NONE);
+ else
+ SendMessageW(This->hWndList, LVM_SETTEXTBKCOLOR, 0, GetSysColor(COLOR_DESKTOP));
+
+ SendMessageW(This->hWndList, LVM_SETTEXTCOLOR, 0, RGB(255,255,255));
+ }
/* UpdateShellSettings(); */
return TRUE;
More information about the wine-patches
mailing list