aboutsummaryrefslogtreecommitdiffstats
path: root/ui/win32
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-11-08 02:31:01 -0800
committerGuy Harris <guy@alum.mit.edu>2015-11-08 10:32:09 +0000
commitcaa1e87410fb74606f2ec91b5fd1b897053149bf (patch)
tree7d46afa570a24957716f5b74add64760bfeb5079 /ui/win32
parent11bdadacc27d3781c3fd0d759068fddd3da9107c (diff)
Use ws_{read,write,fdopen,close}.
Be more consistent about using the ws_ routines, as we suggest in README.developer. In C++ on UN*X, define ws_close as ::close rather than close, so that it works even in classes with methods or members named "close". Change-Id: Ide2652229e6b6b4624cbddae0e909a4ea1efa591 Reviewed-on: https://code.wireshark.org/review/11637 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/win32')
-rw-r--r--ui/win32/file_dlg_win32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/win32/file_dlg_win32.c b/ui/win32/file_dlg_win32.c
index d9b5d026c1..9e9c32d6c5 100644
--- a/ui/win32/file_dlg_win32.c
+++ b/ui/win32/file_dlg_win32.c
@@ -797,12 +797,12 @@ win32_export_raw_file(HWND h_wnd, capture_file *cf) {
open_failure_alert_box(file_name8, errno, TRUE);
return;
}
- if (write(fd, data_p, cf->finfo_selected->length) < 0) {
+ if (ws_write(fd, data_p, cf->finfo_selected->length) < 0) {
write_failure_alert_box(file_name8, errno);
- close(fd);
+ ws_close(fd);
return;
}
- if (close(fd) < 0) {
+ if (ws_close(fd) < 0) {
write_failure_alert_box(file_name8, errno);
return;
}