From abb180c2c47483873b974a60f8c28f30dfbb06d4 Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Tue, 3 Dec 2013 23:56:43 +0000 Subject: [PATCH] [core] layout buffer is to small for drives with weird partitioning * If you have a bunch of extended partitions, 1024 may not be enough * Issue reported by Bart Zorn * Also fix a ChangeLog typo --- ChangeLog.txt | 4 ++-- src/drive.c | 2 +- src/rufus.rc | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 579a4425..5410c9ef 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -5,7 +5,7 @@ o Version 1.4.0 (2013.12.02) - French, courtesy of myself ("Je vais me gêner !") - German, courtesy of Thilo Langbein - Greek, courtesy of Konstantinos and Nikolaos Margaritis - - Hugarian, courtesy of georg1136 + - Hungarian, courtesy of georg1136 - Italian, courtesy of bovirus - Korean, courtesy of 나두야간다 - Lithuanian, courtesy of Gintaras Venslovas @@ -17,7 +17,7 @@ o Version 1.4.0 (2013.12.02) - More to come, more wanted! See http://rufus.akeo.ie/translations Add "smart" detection of USB HDD vs USB Flash Drive Add retry when writing ISO files - Add detection and display VID:PID for the target device (in the log) + Add detection and display of VID:PID for the target device (in the log) Updated Syslinux to v4.0.7 Fixed some issues with DOS localization Fixed FAT32 formatting for large and GPT disks diff --git a/src/drive.c b/src/drive.c index 24c6e7d6..2e259a80 100644 --- a/src/drive.c +++ b/src/drive.c @@ -458,7 +458,7 @@ BOOL GetDrivePartitionData(DWORD DriveIndex, char* FileSystemName, DWORD FileSys BOOL r; HANDLE hPhysical; DWORD size; - BYTE geometry[128], layout[1024], part_type; + BYTE geometry[128], layout[4096], part_type; void* disk_geometry = (void*)geometry; void* drive_layout = (void*)layout; PDISK_GEOMETRY_EX DiskGeometry = (PDISK_GEOMETRY_EX)disk_geometry; diff --git a/src/rufus.rc b/src/rufus.rc index f769d7ce..a8f1f3aa 100644 --- a/src/rufus.rc +++ b/src/rufus.rc @@ -33,7 +33,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL IDD_DIALOG DIALOGEX 12, 12, 206, 329 STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU EXSTYLE WS_EX_APPWINDOW -CAPTION "Rufus v1.4.0.343" +CAPTION "Rufus v1.4.0.344" FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN DEFPUSHBUTTON "Start",IDC_START,94,291,50,14 @@ -288,8 +288,8 @@ END // VS_VERSION_INFO VERSIONINFO - FILEVERSION 1,4,0,343 - PRODUCTVERSION 1,4,0,343 + FILEVERSION 1,4,0,344 + PRODUCTVERSION 1,4,0,344 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L @@ -306,13 +306,13 @@ BEGIN BEGIN VALUE "CompanyName", "Akeo Consulting (http://akeo.ie)" VALUE "FileDescription", "Rufus" - VALUE "FileVersion", "1.4.0.343" + VALUE "FileVersion", "1.4.0.344" VALUE "InternalName", "Rufus" VALUE "LegalCopyright", " 2011-2013 Pete Batard (GPL v3)" VALUE "LegalTrademarks", "http://www.gnu.org/copyleft/gpl.html" VALUE "OriginalFilename", "rufus.exe" VALUE "ProductName", "Rufus" - VALUE "ProductVersion", "1.4.0.343" + VALUE "ProductVersion", "1.4.0.344" END END BLOCK "VarFileInfo"