fix an if statment. Found by thomas.
authorBrandon Turner <turnerb7@msu.edu>
Mon, 29 Aug 2005 19:09:41 +0000 (19:09 +0000)
committerBrandon Turner <turnerb7@msu.edu>
Mon, 29 Aug 2005 19:09:41 +0000 (19:09 +0000)
svn path=/trunk/; revision=17592

reactos/subsys/system/cmd/filecomp.c

index 000418f..109865c 100644 (file)
@@ -690,7 +690,7 @@ VOID CompleteFilename (LPTSTR strIN, BOOL bNext, LPTSTR strOut, INT cusor)
 
                }
                /* insert the quoation and move things around */
-               if(szPrefix[LastSpace + 1] == _T('\"') && LastSpace != -1)
+               if(szPrefix[LastSpace + 1] != _T('\"') && LastSpace != -1)
                {
                        /* add another char or you will lose a null char ending */
                        _tcsncat(szPrefix,&szPrefix[_tcslen(szPrefix) - 1],1);