[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:
Amine Khaldi 2013-04-26 23:05:51 +00:00
parent 46483ced1a
commit 5326f4c7d9

View file

@ -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