Commit 1840e189 authored by Philip Mason's avatar Philip Mason Committed by Alexandre Julliard

Force FILE_GetTempFileName to continue looking for new temp file name

if error returned from CreateFileW is ERROR_SHARING_VIOLATION.
parent f8f7cdf0
......@@ -1090,7 +1090,8 @@ static UINT FILE_GetTempFileName( LPCWSTR path, LPCWSTR prefix, UINT unique,
CloseHandle( handle );
break;
}
if (GetLastError() != ERROR_FILE_EXISTS)
if (GetLastError() != ERROR_FILE_EXISTS &&
GetLastError() != ERROR_SHARING_VIOLATION)
break; /* No need to go on */
num++;
sprintf( buf, "%04x.tmp", num );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment