From ac2b9c20d7e0035b97cf9d31cad29e0596241b26 Mon Sep 17 00:00:00 2001 From: Brandon Turner Date: Mon, 29 Aug 2005 19:09:41 +0000 Subject: [PATCH] fix an if statment. Found by thomas. svn path=/trunk/; revision=17592 --- reactos/subsys/system/cmd/filecomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/subsys/system/cmd/filecomp.c b/reactos/subsys/system/cmd/filecomp.c index 000418f7610..109865cb883 100644 --- a/reactos/subsys/system/cmd/filecomp.c +++ b/reactos/subsys/system/cmd/filecomp.c @@ -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);