Преглед изворни кода

creates appdirectory if it is not there

git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@4 595ec19a-5cb4-439b-94a8-42fb3063c22c
sabrogden пре 22 година
родитељ
комит
47833aeeef
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      DatabaseUtilities.cpp

+ 1 - 1
DatabaseUtilities.cpp

@@ -36,7 +36,7 @@ CString GetDefaultDBName()
 		csDefaultPath = string;		
 		csDefaultPath += "\\Ditto\\";
 		
-		if(_access(csDefaultPath, 0) != -1)
+		if(_access(csDefaultPath, 0) == -1)
 			CreateDirectory(csDefaultPath, NULL);
 		
 		csDefaultPath += DEFAULT_DB_NAME;