summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/syslinux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/syslinux.c b/win32/syslinux.c
index 37b2ff88..53fb3621 100644
--- a/win32/syslinux.c
+++ b/win32/syslinux.c
@@ -149,7 +149,7 @@ int main(int argc, char *argv[])
}
}
- if ( !drive )
+ if ( !drive || !isalpha(drive[0]) || drive[1] != ':' || drive[2] )
usage();
/* Test if drive exists */