mirror of
https://github.com/reactos/reactos.git
synced 2024-10-03 07:53:49 +00:00
[freeldr] Fix warning on recent GCC versions
svn path=/trunk/; revision=43264
This commit is contained in:
parent
9c3b85b7d0
commit
80611d5a1d
|
@ -119,7 +119,7 @@ VOID LoadReactOSSetup(VOID)
|
||||||
|
|
||||||
/* Check if we booted from floppy */
|
/* Check if we booted from floppy */
|
||||||
MachDiskGetBootPath(reactos_kernel_cmdline, sizeof(reactos_kernel_cmdline));
|
MachDiskGetBootPath(reactos_kernel_cmdline, sizeof(reactos_kernel_cmdline));
|
||||||
BootFromFloppy = strstr(reactos_kernel_cmdline, "fdisk");
|
BootFromFloppy = strstr(reactos_kernel_cmdline, "fdisk") != NULL;
|
||||||
|
|
||||||
UiDrawStatusText("Loading txtsetup.sif...");
|
UiDrawStatusText("Loading txtsetup.sif...");
|
||||||
/* Open 'txtsetup.sif' */
|
/* Open 'txtsetup.sif' */
|
||||||
|
|
|
@ -194,7 +194,7 @@ VOID LoadReactOSSetup2(VOID)
|
||||||
MachDiskGetBootPath(SystemPath, sizeof(SystemPath));
|
MachDiskGetBootPath(SystemPath, sizeof(SystemPath));
|
||||||
|
|
||||||
/* And check if we booted from floppy */
|
/* And check if we booted from floppy */
|
||||||
BootFromFloppy = strstr(SystemPath, "fdisk");
|
BootFromFloppy = strstr(SystemPath, "fdisk") != NULL;
|
||||||
|
|
||||||
/* Open 'txtsetup.sif' from any of source paths */
|
/* Open 'txtsetup.sif' from any of source paths */
|
||||||
for (i = BootFromFloppy ? 0 : 1; ; i++)
|
for (i = BootFromFloppy ? 0 : 1; ; i++)
|
||||||
|
|
Loading…
Reference in a new issue