[freeldr] Fix warning on recent GCC versions

svn path=/trunk/; revision=43264
This commit is contained in:
Hervé Poussineau 2009-10-03 13:29:41 +00:00
parent 9c3b85b7d0
commit 80611d5a1d
2 changed files with 2 additions and 2 deletions

View file

@ -119,7 +119,7 @@ VOID LoadReactOSSetup(VOID)
/* Check if we booted from floppy */
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...");
/* Open 'txtsetup.sif' */

View file

@ -194,7 +194,7 @@ VOID LoadReactOSSetup2(VOID)
MachDiskGetBootPath(SystemPath, sizeof(SystemPath));
/* And check if we booted from floppy */
BootFromFloppy = strstr(SystemPath, "fdisk");
BootFromFloppy = strstr(SystemPath, "fdisk") != NULL;
/* Open 'txtsetup.sif' from any of source paths */
for (i = BootFromFloppy ? 0 : 1; ; i++)