From b4a55b2618721e825a884955b4266acb882f3811 Mon Sep 17 00:00:00 2001 From: Steven Fuller Date: Tue, 13 Nov 2001 23:59:48 +0000 Subject: Added Screenshot code. Moved some net stuff around. --- src/winapi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/winapi.c') 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) { -- cgit v1.3