mirror of
https://github.com/open-simh/simh.git
synced 2026-01-15 16:07:47 +00:00
DISK: Properly parenthesize logical expression for clarity avoid clang warning
This commit is contained in:
parent
752bcad2c2
commit
5ee2944f40
@ -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…
x
Reference in New Issue
Block a user