aboutsummaryrefslogtreecommitdiffstats
path: root/win32/syslinux.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/syslinux.c')
-rw-r--r--win32/syslinux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/syslinux.c b/win32/syslinux.c
index 2f614b4e..758b73f0 100644
--- a/win32/syslinux.c
+++ b/win32/syslinux.c
@@ -170,7 +170,7 @@ int main(int argc, char *argv[])
}
/* Check to see that what we got was indeed an MS-DOS boot sector/superblock */
- if(!syslinux_check_bootsect(sectbuf,&errmsg)) {
+ if( (errmsg = syslinux_check_bootsect(sectbuf)) ) {
fprintf(stderr, "%s\n", errmsg);
exit(1);
}