DISK: Properly parenthesize logical expression for clarity avoid clang warning
This commit is contained in:
parent
752bcad2c2
commit
5ee2944f40
1 changed files with 1 additions and 1 deletions
|
@ -2337,7 +2337,7 @@ Handle = CreateFileA (tmpname, DesiredAccess, FILE_SHARE_READ|FILE_SHARE_WRITE,
|
|||
free (tmpname);
|
||||
if (Handle != INVALID_HANDLE_VALUE) {
|
||||
if ((sim_os_disk_info_raw ((FILE *)Handle, NULL, NULL, &is_cdrom)) ||
|
||||
(DesiredAccess & GENERIC_WRITE) && is_cdrom) {
|
||||
((DesiredAccess & GENERIC_WRITE) && is_cdrom)) {
|
||||
CloseHandle (Handle);
|
||||
errno = EACCES;
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue