[SHELL32]
authorThomas Faber <thomas.faber@reactos.org>
Mon, 9 May 2016 07:22:59 +0000 (07:22 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Mon, 9 May 2016 07:22:59 +0000 (07:22 +0000)
- Fix check for GCS_VALIDATE in CDefaultContextMenu::GetCommandString. Patch by Jared Smudde.
CORE-11183

svn path=/trunk/; revision=71291

reactos/dll/win32/shell32/CDefaultContextMenu.cpp

index facf121..9f727dc 100644 (file)
@@ -1790,7 +1790,7 @@ CDefaultContextMenu::GetCommandString(
         if (g_StaticInvokeCmdMap[i].IntVerb == idCommand)
         {
             /* Validation just returns S_OK on a match */
         if (g_StaticInvokeCmdMap[i].IntVerb == idCommand)
         {
             /* Validation just returns S_OK on a match */
-            if (uFlags == GCS_VALIDATEA || uFlags == GCS_VALIDATEA)
+            if (uFlags == GCS_VALIDATEA || uFlags == GCS_VALIDATEW)
                 return S_OK;
 
             /* Return a copy of the ANSI verb */
                 return S_OK;
 
             /* Return a copy of the ANSI verb */