Ignore:
Timestamp:
Jun 24, 2001, 4:13:05 PM (24 years ago)
Author:
sandervl
Message:

Rewrote CopyFile, MoveFile & RemoveDirectory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/directory.cpp

    r5819 r6090  
    1 /* $Id: directory.cpp,v 1.36 2001-05-28 16:23:42 phaller Exp $ */
     1/* $Id: directory.cpp,v 1.37 2001-06-24 14:13:04 sandervl Exp $ */
    22
    33/*
     
    144144  int  rc;
    145145
    146   rc = O32_GetCurrentDirectory(nBufferLength, asciidir);
     146  rc = CALL_ODINFUNC(GetCurrentDirectoryA)(nBufferLength, asciidir);
    147147  if(rc != 0)
    148148    AsciiToUnicode(asciidir, lpBuffer);
     
    507507
    508508
    509 ODINFUNCTION1(BOOL,   RemoveDirectoryA,
    510               LPCSTR, lpstrDirectory)
     509ODINFUNCTION1(BOOL, RemoveDirectoryA, LPCSTR, lpstrDirectory)
    511510{
    512511  int len = strlen(lpstrDirectory);
    513512 
     513  if(lpstrDirectory == NULL) {
     514     SetLastError(ERROR_INVALID_PARAMETER);
     515     return FALSE;
     516  }
    514517  // cut off trailing backslashes
    515518  if ( (lpstrDirectory[len - 1] == '\\') ||
     
    523526  }
    524527 
    525   dprintf(("RemoveDirectory %s",
    526           lpstrDirectory));
    527 
    528   return O32_RemoveDirectory(lpstrDirectory);
     528  dprintf(("RemoveDirectory %s", lpstrDirectory));
     529
     530  return OSLibDosRemoveDir(lpstrDirectory);
    529531}
    530532
Note: See TracChangeset for help on using the changeset viewer.