diff options
| author | Steven Fuller <relnev@icculus.org> | 2001-11-13 23:59:48 +0000 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:36 +0200 |
| commit | b4a55b2618721e825a884955b4266acb882f3811 (patch) | |
| tree | f7031bb9e1bc21d71d1abd7101f1e09ce80c33d8 /src/winapi.c | |
| parent | 219ab378d7e0239e0412e2c4e6cd22895f6b182e (diff) | |
Added Screenshot code.
Moved some net stuff around.
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) { |
