mirror of
https://github.com/pbatard/rufus.git
synced 2024-08-14 23:57:05 +00: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;
|
int shflag = _SH_DENYNO;
|
||||||
wconvert(filename);
|
wconvert(filename);
|
||||||
// Try to match the share flag to the oflag
|
// Try to match the share flag to the oflag
|
||||||
if (oflag & _O_RDONLY)
|
if ((oflag & 0x03) == _O_RDONLY)
|
||||||
shflag = _SH_DENYWR;
|
shflag = _SH_DENYWR;
|
||||||
else if (oflag & _O_WRONLY)
|
else if ((oflag & 0x03) == _O_WRONLY)
|
||||||
shflag = _SH_DENYRD;
|
shflag = _SH_DENYRD;
|
||||||
_wsopen_s(&ret, wfilename, oflag, shflag, pmode);
|
_wsopen_s(&ret, wfilename, oflag, shflag, pmode);
|
||||||
wfree(filename);
|
wfree(filename);
|
||||||
|
|
10
src/rufus.rc
10
src/rufus.rc
|
@ -32,7 +32,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
|
||||||
|
|
||||||
IDD_DIALOG DIALOGEX 12, 12, 242, 376
|
IDD_DIALOG DIALOGEX 12, 12, 242, 376
|
||||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||||
CAPTION "Rufus 2.4.755"
|
CAPTION "Rufus 2.4.756"
|
||||||
FONT 8, "Segoe UI Symbol", 400, 0, 0x0
|
FONT 8, "Segoe UI Symbol", 400, 0, 0x0
|
||||||
BEGIN
|
BEGIN
|
||||||
LTEXT "Device",IDS_DEVICE_TXT,9,6,200,8
|
LTEXT "Device",IDS_DEVICE_TXT,9,6,200,8
|
||||||
|
@ -317,8 +317,8 @@ END
|
||||||
//
|
//
|
||||||
|
|
||||||
VS_VERSION_INFO VERSIONINFO
|
VS_VERSION_INFO VERSIONINFO
|
||||||
FILEVERSION 2,4,755,0
|
FILEVERSION 2,4,756,0
|
||||||
PRODUCTVERSION 2,4,755,0
|
PRODUCTVERSION 2,4,756,0
|
||||||
FILEFLAGSMASK 0x3fL
|
FILEFLAGSMASK 0x3fL
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
FILEFLAGS 0x1L
|
FILEFLAGS 0x1L
|
||||||
|
@ -335,13 +335,13 @@ BEGIN
|
||||||
BEGIN
|
BEGIN
|
||||||
VALUE "CompanyName", "Akeo Consulting (http://akeo.ie)"
|
VALUE "CompanyName", "Akeo Consulting (http://akeo.ie)"
|
||||||
VALUE "FileDescription", "Rufus"
|
VALUE "FileDescription", "Rufus"
|
||||||
VALUE "FileVersion", "2.4.755"
|
VALUE "FileVersion", "2.4.756"
|
||||||
VALUE "InternalName", "Rufus"
|
VALUE "InternalName", "Rufus"
|
||||||
VALUE "LegalCopyright", "© 2011-2015 Pete Batard (GPL v3)"
|
VALUE "LegalCopyright", "© 2011-2015 Pete Batard (GPL v3)"
|
||||||
VALUE "LegalTrademarks", "http://www.gnu.org/copyleft/gpl.html"
|
VALUE "LegalTrademarks", "http://www.gnu.org/copyleft/gpl.html"
|
||||||
VALUE "OriginalFilename", "rufus.exe"
|
VALUE "OriginalFilename", "rufus.exe"
|
||||||
VALUE "ProductName", "Rufus"
|
VALUE "ProductName", "Rufus"
|
||||||
VALUE "ProductVersion", "2.4.755"
|
VALUE "ProductVersion", "2.4.756"
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
|
Loading…
Reference in a new issue