commit | acfc4c6c2fb66e8142df8ed69aa8c6374abc871a | [log] [tgz] |
---|---|---|
author | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | Fri Nov 30 16:46:45 2012 +0000 |
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | Fri Nov 30 16:46:45 2012 +0000 |
tree | 5ff0aa18b77638d51e0870ca1f1229fd393809f0 | |
parent | 62574aa5c0bf0df43a2ed0182562f17f30825f0d [diff] [blame] |
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>
diff --git a/pony_spi.c b/pony_spi.c index 7875200..101751f 100644 --- a/pony_spi.c +++ b/pony_spi.c
@@ -116,7 +116,7 @@ arg = extract_programmer_param("dev"); if (arg && strlen(arg)) { sp_fd = sp_openserport(arg, 9600); - if (sp_fd < 0) { + if (sp_fd == SER_INV_FD) { free(arg); return 1; }