diff options
author | hpa <hpa> | 2004-12-19 00:25:14 +0000 |
---|---|---|
committer | hpa <hpa> | 2004-12-19 00:25:14 +0000 |
commit | b544013ca57aea35b878e380de19c22ac1abb40e (patch) | |
tree | cf3f7ccadc1bddbb73c778441a8bdf5020ff6159 /win32/syslinux.c | |
parent | fc50ce2dd9f4de675605169495a980426fb97181 (diff) | |
download | syslinux-b544013ca57aea35b878e380de19c22ac1abb40e.tar.gz |
Beef up the sanity checking of the boot sector. For really better checking
we should be checking the FAT for the media signature, too.
Diffstat (limited to 'win32/syslinux.c')
-rw-r--r-- | win32/syslinux.c | 2 |
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); } |