- hFile = win32_open_existing_file(path, FILE_READ_ATTRIBUTES);
- if (hFile == INVALID_HANDLE_VALUE) {
- err = GetLastError();
- if (err != ERROR_FILE_NOT_FOUND) {
- WARNING("Failed to open \"%ls\" to get file "
- "and volume IDs", path);
- win32_error(err);
- }
- return WIMLIB_ERR_OPEN;
+ h = win32_open_existing_file(path, FILE_READ_ATTRIBUTES);
+ if (h == INVALID_HANDLE_VALUE) {
+ ret = WIMLIB_ERR_OPEN;
+ goto out;