Ignore:
Timestamp:
Aug 10, 2001, 9:32:30 PM (24 years ago)
Author:
sandervl
Message:

minor updates

File:
1 edited

Legend:

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

    r6094 r6511  
    1 /* $Id: directory.cpp,v 1.38 2001-06-24 16:40:44 sandervl Exp $ */
     1/* $Id: directory.cpp,v 1.39 2001-08-10 19:32:26 sandervl Exp $ */
    22
    33/*
     
    3838#include "oslibdos.h"
    3939#include "profile.h"
     40#include "fileio.h"
    4041
    4142#define DBG_LOCALLOG    DBG_directory
     
    260261  // Creation of an existing directory is NO ERROR it seems.
    261262  DWORD dwAttr = GetFileAttributesA(lpstrDirectory);
    262   if (dwAttr != -1)
    263     if (dwAttr & FILE_ATTRIBUTE_DIRECTORY)
    264     {
    265       SetLastError(ERROR_SUCCESS);
    266       return TRUE;
    267     }
    268  
     263  if(dwAttr != -1)
     264  {
     265      if (dwAttr & FILE_ATTRIBUTE_DIRECTORY)
     266      {
     267          SetLastError(ERROR_SUCCESS);
     268          return TRUE;
     269      }
     270  } 
    269271  return(OSLibDosCreateDirectory(lpstrDirectory));
    270272}
Note: See TracChangeset for help on using the changeset viewer.