This commit is contained in:
Kovid Goyal 2022-07-17 07:55:48 +05:30
commit a2fdf24959
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -526,7 +526,7 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine
WCHAR buf[4*MAX_PATH] = {0}, mb_msg[4*MAX_PATH] = {0}, fdest[4*MAX_PATH] = {0}; WCHAR buf[4*MAX_PATH] = {0}, mb_msg[4*MAX_PATH] = {0}, fdest[4*MAX_PATH] = {0};
if (!load_data(&cdata, &csz)) return ret; if (!load_data(&cdata, &csz)) return ret;
if (!IsWindows10OrGreater()) { show_error(L"Your version of Windows is tool old. calibre requires Windows 10 or greater."); return ret; } if (!IsWindows10OrGreater()) { show_error(L"Your version of Windows is too old. calibre requires Windows 10 or greater."); return ret; }
hr = CoInitialize(NULL); hr = CoInitialize(NULL);
if (FAILED(hr)) { show_error(L"Failed to initialize COM"); return ret; } if (FAILED(hr)) { show_error(L"Failed to initialize COM"); return ret; }