diff options
author | George Hazan <ghazan@miranda.im> | 2019-04-26 20:19:03 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-04-26 20:19:03 +0300 |
commit | a5752fee6f8645c7fad0ca80e6fae3a5e77927d0 (patch) | |
tree | 4c79732cf601cfc085302f8e4ba494a1ad942d9e /plugins/PluginUpdater/src/DlgListNew.cpp | |
parent | 69825c7df6ceec4f038f9fa8894d297244921b4e (diff) |
code cleaning
Diffstat (limited to 'plugins/PluginUpdater/src/DlgListNew.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/DlgListNew.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
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);
|