[freeldr] Fix warning on recent GCC versions
authorHervé Poussineau <hpoussin@reactos.org>
Sat, 3 Oct 2009 13:29:41 +0000 (13:29 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Sat, 3 Oct 2009 13:29:41 +0000 (13:29 +0000)
svn path=/trunk/; revision=43264

reactos/boot/freeldr/freeldr/reactos/setupldr.c
reactos/boot/freeldr/freeldr/windows/setupldr2.c

index 10f03d6..2e4365f 100644 (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' */
index 8497248..ffcb3bc 100644 (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++)