From c2a4fa83e80cc55fcda8e4393431c5a2adcb23c5 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 3 Jul 2017 20:07:23 +0200 Subject: [PATCH] Add logs --- deps/libui/win32/utilwin.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deps/libui/win32/utilwin.cpp b/deps/libui/win32/utilwin.cpp index e44e5c3bf5..9b9a3ac8f4 100644 --- a/deps/libui/win32/utilwin.cpp +++ b/deps/libui/win32/utilwin.cpp @@ -1,5 +1,6 @@ /* 14 may 2015 */ #include "uipriv_windows.hpp" +#include "../../verbosity.h" /* The utility window is a special window that performs certain tasks internal to libui. * It is not a message-only window, and it is always hidden and disabled. @@ -55,8 +56,11 @@ const char *initUtilWindow(HICON hDefaultIcon, HCURSOR hDefaultCursor) wc.hCursor = hDefaultCursor; wc.hbrBackground = (HBRUSH) (COLOR_BTNFACE + 1); if (RegisterClass(&wc) == 0) + { + RARCH_ERR("Cannot register class.\n"); /* see init.cpp for an explanation of the =s */ return "=registering utility window class"; + } utilWindow = CreateWindowExW(0, utilWindowClass, L"libui utility window", @@ -64,7 +68,10 @@ const char *initUtilWindow(HICON hDefaultIcon, HCURSOR hDefaultCursor) 0, 0, 100, 100, NULL, NULL, hInstance, NULL); if (utilWindow == NULL) + { + RARCH_ERR("Cannot create window.\n"); return "=creating utility window"; + } /* and just to be safe */ EnableWindow(utilWindow, FALSE);