mirror of
https://github.com/reactos/reactos.git
synced 2025-05-19 17:14:32 +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:
parent
46483ced1a
commit
5326f4c7d9
1 changed files with 2 additions and 1 deletions
|
@ -2407,7 +2407,8 @@ HRESULT STDMETHODCALLTYPE CDefView::SetCurrentViewMode(UINT ViewMode)
|
||||||
DWORD dwStyle;
|
DWORD dwStyle;
|
||||||
TRACE("(%p)->(%u), stub\n", this, ViewMode);
|
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;
|
return E_INVALIDARG;
|
||||||
|
|
||||||
/* Windows before Vista uses LVM_SETVIEW and possibly
|
/* Windows before Vista uses LVM_SETVIEW and possibly
|
||||||
|
|
Loading…
Reference in a new issue