[SHELL32]
authorDavid Quintana <gigaherz@gmail.com>
Sun, 2 Nov 2014 20:13:56 +0000 (20:13 +0000)
committerDavid Quintana <gigaherz@gmail.com>
Sun, 2 Nov 2014 20:13:56 +0000 (20:13 +0000)
* Fix GCC build.

svn path=/branches/shell-experiments/; revision=65193

dll/win32/shell32/shlview.cpp

index 8da3098..04819f4 100644 (file)
@@ -2261,7 +2261,7 @@ HRESULT STDMETHODCALLTYPE CDefView::SetCurrentViewMode(UINT ViewMode)
     TRACE("(%p)->(%u), stub\n", this, ViewMode);
 
     /* It's not redundant to check FVM_AUTO because it's a (UINT)-1 */
     TRACE("(%p)->(%u), stub\n", this, ViewMode);
 
     /* It's not redundant to check FVM_AUTO because it's a (UINT)-1 */
-    if ((ViewMode < FVM_FIRST || ViewMode > FVM_LAST) && (ViewMode != FVM_AUTO))
+    if (((INT)ViewMode < FVM_FIRST || (INT)ViewMode > FVM_LAST) && ((INT)ViewMode != FVM_AUTO))
         return E_INVALIDARG;
 
     /* Windows before Vista uses LVM_SETVIEW and possibly
         return E_INVALIDARG;
 
     /* Windows before Vista uses LVM_SETVIEW and possibly