mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-24 19:54:25 -04:00
[misc] fix a coverity report in msapi_utf8.h
This commit is contained in:
parent
ae06a39d2f
commit
9411716074
2 changed files with 7 additions and 7 deletions
|
@ -785,9 +785,9 @@ static __inline int _openU(const char *filename, int oflag , int pmode)
|
|||
int shflag = _SH_DENYNO;
|
||||
wconvert(filename);
|
||||
// Try to match the share flag to the oflag
|
||||
if (oflag & _O_RDONLY)
|
||||
if ((oflag & 0x03) == _O_RDONLY)
|
||||
shflag = _SH_DENYWR;
|
||||
else if (oflag & _O_WRONLY)
|
||||
else if ((oflag & 0x03) == _O_WRONLY)
|
||||
shflag = _SH_DENYRD;
|
||||
_wsopen_s(&ret, wfilename, oflag, shflag, pmode);
|
||||
wfree(filename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue