Ignore:
Timestamp:
Jan 18, 2003, 9:11:46 PM (23 years ago)
Author:
sandervl
Message:

FindFirstFile must return ERROR_FILE_NOT_FOUND when the specified file or directory isn't present

File:
1 edited

Legend:

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

    r9660 r9691  
    1 /* $Id: oslibdos.cpp,v 1.112 2003-01-10 15:19:54 sandervl Exp $ */
     1/* $Id: oslibdos.cpp,v 1.113 2003-01-18 20:11:46 sandervl Exp $ */
    22/*
    33 * Wrappers for OS/2 Dos* API
     
    22112211  {
    22122212    DosFindClose(hDir);
    2213     SetLastError(error2WinError(rc));
     2213   
     2214    //Windows returns ERROR_FILE_NOT_FOUND if the file/directory is not present
     2215    if(rc == ERROR_NO_MORE_FILES) {
     2216         SetLastError(ERROR_FILE_NOT_FOUND_W);
     2217    }
     2218    else SetLastError(error2WinError(rc));
    22142219    return INVALID_HANDLE_VALUE_W;
    22152220  }
Note: See TracChangeset for help on using the changeset viewer.