[sword-cvs] sword/src/keys treekeyidx.cpp,1.14,1.15

sword@www.crosswire.org sword@www.crosswire.org
Thu, 15 Jan 2004 20:42:43 -0700


Update of /cvs/core/sword/src/keys
In directory www:/tmp/cvs-serv22315/src/keys

Modified Files:
	treekeyidx.cpp 
Log Message:
WINCE fixes

Index: treekeyidx.cpp
===================================================================
RCS file: /cvs/core/sword/src/keys/treekeyidx.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- treekeyidx.cpp	27 Jun 2003 01:41:07 -0000	1.14
+++ treekeyidx.cpp	16 Jan 2004 03:42:41 -0000	1.15
@@ -255,13 +255,13 @@
 		path[strlen(path)-1] = 0;
 
 	sprintf(buf, "%s.dat", path);
-	unlink(buf);
+	FileMgr::removeFile(buf);
 	fd = FileMgr::systemFileMgr.open(buf, O_CREAT|O_WRONLY|O_BINARY, S_IREAD|S_IWRITE);
 	fd->getFd();
 	FileMgr::systemFileMgr.close(fd);
 
 	sprintf(buf, "%s.idx", path);
-	unlink(buf);
+	FileMgr::removeFile(buf);
 	fd2 = FileMgr::systemFileMgr.open(buf, O_CREAT|O_WRONLY|O_BINARY, S_IREAD|S_IWRITE);
 	fd2->getFd();
 	FileMgr::systemFileMgr.close(fd2);