Rev 14 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 14 | Rev 18 | ||
|---|---|---|---|
| Line 5... | Line 5... | ||
| 5 | // this has to be first |
5 | // this has to be first |
| 6 | #include <windows.h> |
6 | #include <windows.h> |
| 7 | 7 | ||
| 8 | #include <imagehlp.h> |
8 | #include <imagehlp.h> |
| 9 | 9 | ||
| - | 10 | #include "harness/config.h" |
|
| 10 | #include "harness/os.h" |
11 | #include "harness/os.h" |
| 11 | 12 | ||
| 12 | #include <assert.h> |
13 | #include <assert.h> |
| 13 | #include <direct.h> |
14 | #include <direct.h> |
| 14 | #include <errno.h> |
15 | #include <errno.h> |
| Line 160... | Line 161... | ||
| 160 | FILE* f; |
161 | FILE* f; |
| 161 | errno_t err; |
162 | errno_t err; |
| 162 | 163 | ||
| 163 | f = NULL; |
164 | f = NULL; |
| 164 | err = fopen_s(&f, pathname, mode); |
165 | err = fopen_s(&f, pathname, mode); |
| - | 166 | if (harness_game_config.verbose) { |
|
| 165 | if (err != 0) { |
167 | if (err != 0) { |
| 166 | fprintf(stderr, "Failed to open \"%s\" (%s)\n", pathname, strerror(err)); |
168 | fprintf(stderr, "Failed to open \"%s\" (%s)\n", pathname, strerror(err)); |
| - | 169 | } |
|
| 167 | } |
170 | } |
| 168 | 171 | ||
| 169 | return f; |
172 | return f; |
| 170 | } |
173 | } |
| 171 | 174 | ||