diff options
author | Erik Faye-Lund <erik.faye-lund@collabora.com> | 2020-04-17 13:38:21 +0200 |
---|---|---|
committer | Erik Faye-Lund <erik.faye-lund@collabora.com> | 2020-04-20 11:48:40 +0200 |
commit | b571364ae09c2af5f0480f10c4220a82b53d2443 (patch) | |
tree | 42d31dc53d0ab63b3cd730eaa050c73ebd5eb8d6 | |
parent | 9a88b8e153d7f0a9a31c00fc5f0542778cb15652 (diff) |
wglgears: exit with error-code on error
Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r-- | src/wgl/wglgears.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wgl/wglgears.c b/src/wgl/wglgears.c index 66cd9426..c78ef4aa 100644 --- a/src/wgl/wglgears.c +++ b/src/wgl/wglgears.c @@ -413,7 +413,7 @@ make_window(const char *name, int x, int y, int width, int height) pixelFormat = ChoosePixelFormat(hDC, &pfd); if (!pixelFormat) { printf("ChoosePixelFormat failed\n"); - exit(0); + exit(1); } SetPixelFormat(hDC, pixelFormat, &pfd); |