1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-02 14:33:18 +02:00

Fix sp_openserport users on Windows

Corresponding to flashrom svn r1627.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Idwer Vollering <vidwer@gmail.com>
This commit is contained in:
Stefan Tauner
2012-11-30 16:46:45 +00:00
parent 62574aa5c0
commit acfc4c6c2f
3 changed files with 3 additions and 3 deletions

View File

@ -372,7 +372,7 @@ int serprog_init(void)
}
if (strlen(device)) {
sp_fd = sp_openserport(device, atoi(baudport));
if (sp_fd < 0) {
if (sp_fd == SER_INV_FD) {
free(device);
return 1;
}