Ignore:
Timestamp:
Jan 20, 2003, 11:46:28 AM (23 years ago)
Author:
sandervl
Message:

Only load LVM.DLL when we actually need it; CreateProcess bugfix for thread id if launched directly; CreateFile returns ERROR_ALREADY_EXISTS if file not found and CREATE_NEW; Check and correct process type in thread wrapper

File:
1 edited

Legend:

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

    r9691 r9693  
    1 /* $Id: oslibdos.cpp,v 1.113 2003-01-18 20:11:46 sandervl Exp $ */
     1/* $Id: oslibdos.cpp,v 1.114 2003-01-20 10:46:27 sandervl Exp $ */
    22/*
    33 * Wrappers for OS/2 Dos* API
     
    10051005      int winError = error2WinError(rc);
    10061006      if (winError == ERROR_OPEN_FAILED_W || winError == ERROR_PATH_NOT_FOUND_W)
    1007         winError = ERROR_FILE_NOT_FOUND_W;
     1007      {
     1008          //Windows returns ERROR_FILE_EXISTS if create new & file exists
     1009          if(fuCreate == CREATE_NEW_W) {
     1010                winError = ERROR_FILE_EXISTS_W;
     1011          }
     1012          else  winError = ERROR_FILE_NOT_FOUND_W;
     1013      }
    10081014      SetLastError(winError);
    10091015      return INVALID_HANDLE_VALUE_W;
Note: See TracChangeset for help on using the changeset viewer.