Ticket #3551: operations.patch

File operations.patch, 492 bytes (added by max@…, 13 years ago)

Patch for operations.hpp adding support for ERROR_NO_MORE_FILES code when returned from FindFirstFile()

  • operations.

    old new  
    903903          == INVALID_HANDLE_VALUE )
    904904        {
    905905          handle = 0;
    906           return error_code( ::GetLastError() == ERROR_FILE_NOT_FOUND
     906          return error_code( ::GetLastError() == ERROR_FILE_NOT_FOUND || ::GetLastError() == ERROR_NO_MORE_FILES
    907907            ? 0 : ::GetLastError(), system_category );
    908908        }
    909909        target = data.cFileName;