diff options
Diffstat (limited to 'src/winapi.c')
| -rw-r--r-- | src/winapi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/winapi.c b/src/winapi.c index fb4687f..f812cf1 100644 --- a/src/winapi.c +++ b/src/winapi.c @@ -45,8 +45,10 @@ HANDLE CreateFile(const char *file, int mode, int x, int y, int flags, int flags exit(EXIT_FAILURE); } fd = open(file, O_RDONLY); - if (fd == -1) + if (fd == -1) { + perror("CreateFile"); return INVALID_HANDLE_VALUE; + } break; case GENERIC_WRITE: if (flags != CREATE_ALWAYS) { |
