Author: akhaldi Date: Fri Apr 26 23:05:51 2013 New Revision: 58863
URL: http://svn.reactos.org/svn/reactos?rev=58863&view=rev Log: [SHELL32] * Fix the FVM_AUTO handing in CDefView::SetCurrentViewMode. Brought to you by Victor Martinez. CORE-7126 #resolve
Modified: trunk/reactos/dll/win32/shell32/shlview.cpp
Modified: trunk/reactos/dll/win32/shell32/shlview.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shlview.c... ============================================================================== --- trunk/reactos/dll/win32/shell32/shlview.cpp [iso-8859-1] (original) +++ trunk/reactos/dll/win32/shell32/shlview.cpp [iso-8859-1] Fri Apr 26 23:05:51 2013 @@ -2407,7 +2407,8 @@ DWORD dwStyle; TRACE("(%p)->(%u), stub\n", this, ViewMode);
- if ((ViewMode < FVM_FIRST || ViewMode > FVM_LAST) /* && (ViewMode != FVM_AUTO) */ ) + /* It's not redundant to check FVM_AUTO because it's a (UINT)-1 */ + if ((ViewMode < FVM_FIRST || ViewMode > FVM_LAST) && (ViewMode != FVM_AUTO)) return E_INVALIDARG;
/* Windows before Vista uses LVM_SETVIEW and possibly