Skip to content

Commit

Permalink
[locale] fixed file attributes for FreeDOS locale files
Browse files Browse the repository at this point in the history
* closes #26
  • Loading branch information
pbatard committed Dec 25, 2011
1 parent 75e94c1 commit 526a125
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/dos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
12 changes: 6 additions & 6 deletions src/rufus.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -65,7 +65,7 @@ BEGIN
DEFPUSHBUTTON "OK",IDOK,231,175,50,14,WS_GROUP
CONTROL "<a href=""http://rufus.akeo.ie"">http://rufus.akeo.ie</a>",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
Expand Down Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 526a125

Please sign in to comment.