Skip to content

Commit accc7c0

Browse files
DarkFire01pbatard
authored andcommitted
[iso] check for freeldr.sys as well for ReactOS
* Closes #2589. Signed-off-by: Justin Miller <justin.miller@reactos.org>
1 parent eb28264 commit accc7c0

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

src/iso.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static const char* syslinux_cfg[] = { "isolinux.cfg", "syslinux.cfg", "extlinux.
112112
static const char* isolinux_bin[] = { "isolinux.bin", "boot.bin" };
113113
static const char* pe_dirname[] = { "/i386", "/amd64", "/minint" };
114114
static const char* pe_file[] = { "ntdetect.com", "setupldr.bin", "txtsetup.sif" };
115-
static const char* reactos_name = "setupldr.sys"; // TODO: freeldr.sys doesn't seem to work
115+
static const char* reactos_name[] = { "setupldr.sys", "freeldr.sys" };
116116
static const char* kolibri_name = "kolibri.img";
117117
static const char* autorun_name = "autorun.inf";
118118
static const char* manjaro_marker = ".miso";
@@ -274,9 +274,12 @@ static BOOL check_iso_props(const char* psz_dirname, int64_t file_length, const
274274
}
275275
}
276276

277-
// Check for ReactOS' setupldr.sys anywhere
278-
if ((img_report.reactos_path[0] == 0) && (safe_stricmp(psz_basename, reactos_name) == 0))
279-
static_strcpy(img_report.reactos_path, psz_fullpath);
277+
// Check for ReactOS presence anywhere
278+
if (img_report.reactos_path[0] == 0) {
279+
for (i = 0; i < ARRAYSIZE(reactos_name); i++)
280+
if (safe_stricmp(psz_basename, reactos_name[i]) == 0)
281+
static_strcpy(img_report.reactos_path, psz_fullpath);
282+
}
280283

281284
// Check for the first 'efi*.img' we can find (that hopefully contains EFI boot files)
282285
if (!HAS_EFI_IMG(img_report) && (safe_strlen(psz_basename) >= 7) &&

src/rufus.rc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
3333
IDD_DIALOG DIALOGEX 12, 12, 232, 326
3434
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
3535
EXSTYLE WS_EX_ACCEPTFILES
36-
CAPTION "Rufus 4.6.2206"
36+
CAPTION "Rufus 4.6.2207"
3737
FONT 9, "Segoe UI Symbol", 400, 0, 0x0
3838
BEGIN
3939
LTEXT "Drive Properties",IDS_DRIVE_PROPERTIES_TXT,8,6,53,12,NOT WS_GROUP
@@ -399,8 +399,8 @@ END
399399
//
400400

401401
VS_VERSION_INFO VERSIONINFO
402-
FILEVERSION 4,6,2206,0
403-
PRODUCTVERSION 4,6,2206,0
402+
FILEVERSION 4,6,2207,0
403+
PRODUCTVERSION 4,6,2207,0
404404
FILEFLAGSMASK 0x3fL
405405
#ifdef _DEBUG
406406
FILEFLAGS 0x1L
@@ -418,13 +418,13 @@ BEGIN
418418
VALUE "Comments", "https://rufus.ie"
419419
VALUE "CompanyName", "Akeo Consulting"
420420
VALUE "FileDescription", "Rufus"
421-
VALUE "FileVersion", "4.6.2206"
421+
VALUE "FileVersion", "4.6.2207"
422422
VALUE "InternalName", "Rufus"
423423
VALUE "LegalCopyright", "� 2011-2024 Pete Batard (GPL v3)"
424424
VALUE "LegalTrademarks", "https://www.gnu.org/licenses/gpl-3.0.html"
425425
VALUE "OriginalFilename", "rufus-4.6.exe"
426426
VALUE "ProductName", "Rufus"
427-
VALUE "ProductVersion", "4.6.2206"
427+
VALUE "ProductVersion", "4.6.2207"
428428
END
429429
END
430430
BLOCK "VarFileInfo"

0 commit comments

Comments
 (0)