From 526a1254635d11cd98d2a19c9e9a8381c8bfa50a Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Sun, 25 Dec 2011 23:19:02 +0000 Subject: [PATCH] [locale] fixed file attributes for FreeDOS locale files * closes #26 --- src/dos.c | 4 ++-- src/rufus.rc | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/dos.c b/src/dos.c index 2ab4d289b03..5675a4c323b 100644 --- a/src/dos.c +++ b/src/dos.c @@ -398,12 +398,12 @@ BOOL ExtractFreeDOS(const char* path) res_data = (BYTE*)LockResource(res_handle); res_size = SizeofResource(NULL, res); - strcpy(filename, (i<3)?path:locale_path); + strcpy(filename, (i<2)?path:locale_path); safe_strcat(filename, sizeof(filename), "\\"); safe_strcat(filename, sizeof(filename), res_name[i]); hFile = CreateFileA(filename, GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, - NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_SYSTEM, 0); + NULL, CREATE_ALWAYS, (i<2)?(FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_SYSTEM):0, 0); if (hFile == INVALID_HANDLE_VALUE) { uprintf("Unable to create file '%s': %s.\n", filename, WindowsErrorString()); return FALSE; diff --git a/src/rufus.rc b/src/rufus.rc index fda292db9be..33d919c49e6 100644 --- a/src/rufus.rc +++ b/src/rufus.rc @@ -30,7 +30,7 @@ LANGUAGE LANG_ENGLISH, SUBLANG_NEUTRAL IDD_DIALOG DIALOGEX 12, 12, 206, 278 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU EXSTYLE WS_EX_APPWINDOW -CAPTION "Rufus v1.0.5.104" +CAPTION "Rufus v1.0.5.105" FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN DEFPUSHBUTTON "Start",IDC_START,94,236,50,14 @@ -65,7 +65,7 @@ BEGIN DEFPUSHBUTTON "OK",IDOK,231,175,50,14,WS_GROUP CONTROL "http://rufus.akeo.ie",IDC_ABOUT_RUFUS_URL, "SysLink",WS_TABSTOP,46,47,114,9 - LTEXT "Version 1.0.5 (Build 104)",IDC_STATIC,46,19,78,8 + LTEXT "Version 1.0.5 (Build 105)",IDC_STATIC,46,19,78,8 PUSHBUTTON "License...",IDC_ABOUT_LICENSE,46,175,50,14,WS_GROUP EDITTEXT IDC_ABOUT_COPYRIGHTS,46,107,235,63,ES_MULTILINE | ES_READONLY | WS_VSCROLL LTEXT "Report bugs or request enhancements at:",IDC_STATIC,46,66,187,8 @@ -170,8 +170,8 @@ END // VS_VERSION_INFO VERSIONINFO - FILEVERSION 1,0,5,104 - PRODUCTVERSION 1,0,5,104 + FILEVERSION 1,0,5,105 + PRODUCTVERSION 1,0,5,105 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L @@ -188,13 +188,13 @@ BEGIN BEGIN VALUE "CompanyName", "akeo.ie" VALUE "FileDescription", "Rufus" - VALUE "FileVersion", "1.0.5.104" + VALUE "FileVersion", "1.0.5.105" VALUE "InternalName", "Rufus" VALUE "LegalCopyright", "© 2011 Pete Batard (GPL v3)" VALUE "LegalTrademarks", "http://www.gnu.org/copyleft/gpl.html" VALUE "OriginalFilename", "rufus.exe" VALUE "ProductName", "Rufus" - VALUE "ProductVersion", "1.0.5.104" + VALUE "ProductVersion", "1.0.5.105" END END BLOCK "VarFileInfo"