From f16224793e1a3ce1161a0179328cb566f85d7018 Mon Sep 17 00:00:00 2001 From: Brian Ferguson Date: Tue, 26 Mar 2013 15:14:37 -0600 Subject: [PATCH] FileView: Tweaks --- Plugins/PluginFileView/PluginFileView.cpp | 5 +---- Plugins/PluginFileView/PluginFileView.rc | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Plugins/PluginFileView/PluginFileView.cpp b/Plugins/PluginFileView/PluginFileView.cpp index 7944adea..d02ac923 100644 --- a/Plugins/PluginFileView/PluginFileView.cpp +++ b/Plugins/PluginFileView/PluginFileView.cpp @@ -498,19 +498,16 @@ PLUGIN_EXPORT void ExecuteBang(void* data, LPCWSTR args) auto runFile = [&](std::wstring& filename, std::wstring& dir) { - CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED | COINIT_DISABLE_OLE1DDE); - std::wstring file = dir + filename; SHELLEXECUTEINFO si = {sizeof(SHELLEXECUTEINFO)}; - si.lpVerb = L"open"; + si.lpVerb = nullptr; si.lpFile = file.c_str(); si.nShow = SW_SHOWNORMAL; si.lpDirectory = dir.c_str(); si.fMask = SEE_MASK_FLAG_NO_UI | SEE_MASK_ASYNCOK; ShellExecuteEx(&si); - CoUninitialize(); }; if (parent->ownerChild == child) diff --git a/Plugins/PluginFileView/PluginFileView.rc b/Plugins/PluginFileView/PluginFileView.rc index ce8d03c8..0ab70d9f 100644 --- a/Plugins/PluginFileView/PluginFileView.rc +++ b/Plugins/PluginFileView/PluginFileView.rc @@ -7,7 +7,7 @@ // VS_VERSION_INFO VERSIONINFO - FILEVERSION 2,0,1,0 + FILEVERSION 2,0,2,0 PRODUCTVERSION PRODUCTVER FILEFLAGSMASK 0x17L #ifdef _DEBUG @@ -23,7 +23,7 @@ VS_VERSION_INFO VERSIONINFO { BLOCK "040904E4" { - VALUE "FileVersion", "2.0.1.0" + VALUE "FileVersion", "2.0.2.0" VALUE "LegalCopyright", "© 2012 - Brian Ferguson" VALUE "ProductName", "Rainmeter" #ifdef _WIN64