From a5752fee6f8645c7fad0ca80e6fae3a5e77927d0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 26 Apr 2019 20:19:03 +0300 Subject: code cleaning --- plugins/PluginUpdater/src/DlgListNew.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'plugins/PluginUpdater/src/DlgListNew.cpp') diff --git a/plugins/PluginUpdater/src/DlgListNew.cpp b/plugins/PluginUpdater/src/DlgListNew.cpp index 9f7e7cf898..dab61be944 100644 --- a/plugins/PluginUpdater/src/DlgListNew.cpp +++ b/plugins/PluginUpdater/src/DlgListNew.cpp @@ -159,7 +159,6 @@ INT_PTR CALLBACK DlgList(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) ImageList_AddIconFromIconLib(hIml, 1); ListView_SetImageList(hwndList, hIml, LVSIL_SMALL); - OSVERSIONINFO osver = { sizeof(osver) }; if (IsWinVer7Plus()) { wchar_t szPath[MAX_PATH]; GetModuleFileNameW(nullptr, szPath, _countof(szPath)); @@ -169,7 +168,6 @@ INT_PTR CALLBACK DlgList(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) wcscat(szPath, L".test"); HANDLE hFile = CreateFileW(szPath, GENERIC_WRITE, FILE_SHARE_READ, nullptr, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, nullptr); if (hFile == INVALID_HANDLE_VALUE) - // Running Windows Vista or later (major version >= 6). Button_SetElevationRequiredState(GetDlgItem(hDlg, IDOK), !IsProcessElevated()); else { CloseHandle(hFile); -- cgit v1.2.3