summaryrefslogtreecommitdiffstats
path: root/coreboot_tables.h
diff options
context:
space:
mode:
authorDavid Hendricks <david.hendricks@gmail.com>2020-07-02 09:36:50 -0700
committerAngel Pons <th3fanbus@gmail.com>2020-07-07 14:02:02 +0000
commit174a0c1b405281158d32b457e5652cc961260549 (patch)
treed99d1a417605a1a954ddebf63bc93d7a3e3433cb /coreboot_tables.h
parent9b6fb745c2945725d0c6d5b2f17991dde9bb39b0 (diff)
downloadflashrom-174a0c1b405281158d32b457e5652cc961260549.tar.gz
flashrom-174a0c1b405281158d32b457e5652cc961260549.tar.bz2
flashrom-174a0c1b405281158d32b457e5652cc961260549.zip
serial: Fix file read/write error handling for Windows
File read/write semantics are different between POSIX and Windows. In particular Windows file read/write functions return a boolean type to indicate success or failure, while the POSIX equivalents return a signed integer indicating number of bytes read if successful or -1 if not. This attempts to correct some error handling paths for Windows and avoid invalid comparisons that were causing compilation issues. Reported on https://github.com/flashrom/flashrom/issues/149 Change-Id: Ib179d51ede2dbd38f54f3641bfe90340a6a87e31 Signed-off-by: David Hendricks <david.hendricks@gmail.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/43051 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'coreboot_tables.h')
0 files changed, 0 insertions, 0 deletions