Replace deprectaed function (unlink, stricmp) with new ones (_unlink, _stricmp)
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 22 Dec 2008 23:24:18 +0000 (23:24 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 22 Dec 2008 23:24:18 +0000 (23:24 +0000)
svn path=/trunk/; revision=38283

rosapps/dflat32/config.c
rosapps/dflat32/direct.c
rosapps/dflat32/edit.c
rosapps/dflat32/helpbox.c

index 0a92a16..053ab4a 100644 (file)
@@ -479,7 +479,7 @@ BOOL DfLoadConfig(void)
                                char path[64];
                                DfBuildFileName(path, ".DfCfg");
                        fclose(fp);
-                               unlink(path);
+                               _unlink(path);
                strcpy(DfCfg.version, DF_VERSION);
                        }
                        ConfigLoaded = TRUE;
index afb4b09..db3f576 100644 (file)
@@ -78,7 +78,7 @@ void DfCreatePath(char *path,char *fspec,int InclName,int Change)
 
 static int dircmp(const void *c1, const void *c2)
 {
-    return stricmp(*(char **)c1, *(char **)c2);
+    return _stricmp(*(char **)c1, *(char **)c2);
 }
 
 
index e01c486..06586ac 100644 (file)
@@ -241,7 +241,7 @@ static void SelectFile(DFWINDOW wnd)
                while (wnd1 != NULL)
                {
                        if (wnd1->extension &&
-                               stricmp(FileName, wnd1->extension) == 0)
+                               _stricmp(FileName, wnd1->extension) == 0)
                        {
                                DfSendMessage(wnd1, DFM_SETFOCUS, TRUE, 0);
                                DfSendMessage(wnd1, DFM_RESTORE, 0, 0);
@@ -462,7 +462,7 @@ static void EditDeleteFile(DFWINDOW wnd)
                 char msg[30];
                 sprintf(msg, "Delete %s?", fn);
                 if (DfYesNoBox(msg))    {
-                    unlink(wnd->extension);
+                    _unlink(wnd->extension);
                     DfSendMessage(wnd, DFM_CLOSE_WINDOW, 0, 0);
                 }
             }
index 01d2f1f..b8e3867 100644 (file)
@@ -536,7 +536,7 @@ BOOL DfDisplayHelp(DFWINDOW wnd, char *Help)
     FindHelp(Help);
     if (ThisHelp != NULL)    {
         if (LastStack == NULL ||
-                stricmp(Help, LastStack->hname))    {
+                _stricmp(Help, LastStack->hname))    {
             /* ---- add the window to the history stack ---- */
             ThisStack = DfCalloc(1,sizeof(struct HelpStack));
             ThisStack->hname = DfMalloc(strlen(Help)+1);