SWDEV-261215 - Updating file handle APIs with file sharing option to accomodate back to back hipModuleLoad calls.
Change-Id: I8fd833b678ca38c60e2d7d02295fd01df0af5592
[ROCm/clr commit: e8208de6c1]
This commit is contained in:
committed by
Karthik Jayaprakash
parent
a26b7cc43a
commit
552218f005
@@ -842,7 +842,7 @@ bool Os::GetFileHandle(const char* fname, FileDesc* fd_ptr, size_t* sz_ptr) {
|
||||
}
|
||||
|
||||
*fd_ptr = INVALID_HANDLE_VALUE;
|
||||
*fd_ptr = CreateFileA(fname, GENERIC_READ, 0, NULL, OPEN_EXISTING,
|
||||
*fd_ptr = CreateFileA(fname, GENERIC_READ, 0x1, NULL, OPEN_EXISTING,
|
||||
FILE_ATTRIBUTE_READONLY, NULL);
|
||||
if (*fd_ptr == INVALID_HANDLE_VALUE) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user