Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions windows/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,12 @@ const char *uiInit(uiInitOptions *o)
ZeroMemory(&icc, sizeof (INITCOMMONCONTROLSEX));
icc.dwSize = sizeof (INITCOMMONCONTROLSEX);
icc.dwICC = wantedICCClasses;
if (InitCommonControlsEx(&icc) == 0)
return ieLastErr("initializing Common Controls");
if (InitCommonControlsEx(&icc) == 0) {
DWORD last_err = GetLastError();
if (last_err != 0) {
return initerr("=" "initializing Common Controls", L"GetLastError() ==", last_err);
}
}

hr = CoInitialize(NULL);
if (hr != S_OK && hr != S_FALSE)
Expand Down