| 92 | } |
| 93 | |
| 94 | static int write_platf(DESC file, const void* buf, int count) |
| 95 | { |
| 96 | #ifdef WIN_NT |
| 97 | DWORD act; |
| 98 | if (!WriteFile(file, buf, count, &act, NULL)) |
| 99 | { |
| 100 | return -1; |
| 101 | } |
| 102 | return act; |
| 103 | #else |
| 104 | return write(file, buf, count); |
| 105 | #endif |
| 106 | } |
| 107 | |
| 108 | static void close_platf(DESC file) |
| 109 | { |
no outgoing calls
no test coverage detected