mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[SHELL32]
* Fix the FVM_AUTO handing in CDefView::SetCurrentViewMode. Brought to you by Victor Martinez. CORE-7126 #resolve svn path=/trunk/; revision=58863
This commit is contained in:
@@ -2407,7 +2407,8 @@ HRESULT STDMETHODCALLTYPE CDefView::SetCurrentViewMode(UINT ViewMode)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user