Changeset 6094 for trunk/src/kernel32


Ignore:
Timestamp:
Jun 24, 2001, 6:40:45 PM (24 years ago)
Author:
sandervl
Message:

rewrote CreateDirectory

Location:
trunk/src/kernel32
Files:
3 edited

Legend:

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

    r6090 r6094  
    1 /* $Id: directory.cpp,v 1.37 2001-06-24 14:13:04 sandervl Exp $ */
     1/* $Id: directory.cpp,v 1.38 2001-06-24 16:40:44 sandervl Exp $ */
    22
    33/*
     
    255255  }
    256256 
    257   dprintf(("CreateDirectoryA %s",
    258             lpstrDirectory));
     257  dprintf(("CreateDirectoryA %s", lpstrDirectory));
    259258 
    260259  // PH Note 2000/06/12:
     
    268267    }
    269268 
    270   return(O32_CreateDirectory(lpstrDirectory,
    271                              arg2));
     269  return(OSLibDosCreateDirectory(lpstrDirectory));
    272270}
    273271
     
    291289
    292290  astring = UnicodeToAsciiString((LPWSTR)arg1);
    293   rc = CreateDirectoryA(astring, arg2);
     291  rc = CALL_ODINFUNC(CreateDirectoryA)(astring, arg2);
    294292  FreeAsciiString(astring);
    295293  return(rc);
  • trunk/src/kernel32/oslibdos.cpp

    r6090 r6094  
    1 /* $Id: oslibdos.cpp,v 1.70 2001-06-24 14:13:04 sandervl Exp $ */
     1/* $Id: oslibdos.cpp,v 1.71 2001-06-24 16:40:44 sandervl Exp $ */
    22/*
    33 * Wrappers for OS/2 Dos* API
     
    551551
    552552  rc = DosDeleteDir((PSZ)lpszDir);
     553  SetLastError(error2WinError(rc));
     554  return (rc == NO_ERROR);
     555}
     556//******************************************************************************
     557//******************************************************************************
     558BOOL OSLibDosCreateDirectory(LPCSTR lpszDir)
     559{
     560 APIRET rc;
     561
     562  rc = DosCreateDir((PSZ)lpszDir, NULL);
    553563  SetLastError(error2WinError(rc));
    554564  return (rc == NO_ERROR);
  • trunk/src/kernel32/oslibdos.h

    r6090 r6094  
    1 /* $Id: oslibdos.h,v 1.33 2001-06-24 14:13:05 sandervl Exp $ */
     1/* $Id: oslibdos.h,v 1.34 2001-06-24 16:40:45 sandervl Exp $ */
    22
    33/*
     
    8080BOOL OSLibDosMoveFile(LPCSTR lpszOldFile, LPCSTR lpszNewFile);
    8181BOOL OSLibDosRemoveDir(LPCSTR lpszDir);
     82BOOL OSLibDosCreateDirectory(LPCSTR lpszDir);
    8283
    8384#define OSLIB_SETPTR_FILE_CURRENT       0
Note: See TracChangeset for help on using the changeset viewer.