Changeset 85 for trunk/orca

Show
Ignore:
Timestamp:
03/09/06 21:09:03 (3 years ago)
Author:
krobillard
Message:

Windows os.c compiles again

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/orca/win32/os.c

    r71 r85  
    136136    orTermCStr(str); 
    137137 
    138 #if 0 
     138#if 1 
    139139    if( ! CreateDirectory( str->charArray, NULL ) ) 
    140140    { 
     141        DWORD err; 
     142        err = GetLastError(); 
     143        if( (err != ERROR_FILE_EXISTS) || (orIsDir(str->charArray) != 1) ) 
     144        { 
     145            orErrorT( OR_ERROR_ACCESS, "CreateDirectory error (%d)", err ); 
     146        } 
    141147    } 
    142148#else 
     
    146152        if( (errno != EEXIST) || (orIsDir(str->charArray) != 1) ) 
    147153        { 
    148             orErrorT( OR_ACCESS_ERR, strerror/*_r*/(errno) ); 
     154            orErrorT( OR_ERROR_ACCESS, strerror/*_r*/(errno) ); 
    149155        } 
    150156    }