From 793cdce37e2224032b724c753a47c4c48b7cce67 Mon Sep 17 00:00:00 2001 From: Ahmed Zetao Yang Date: Mon, 7 Sep 2020 17:24:23 +0800 Subject: [PATCH] fix: set win32 api minimum system level as Win7 --- src/tools/launcher/openwithprogram.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tools/launcher/openwithprogram.cpp b/src/tools/launcher/openwithprogram.cpp index 28cb1a6f..8d69257f 100644 --- a/src/tools/launcher/openwithprogram.cpp +++ b/src/tools/launcher/openwithprogram.cpp @@ -21,8 +21,12 @@ #include "src/utils/filenamehandler.h" #include #include -#include #include +#ifdef _WIN32_WINNT +#undef _WIN32_WINNT +#define _WIN32_WINNT 0x601 +#endif +#include #pragma comment(lib, "Shell32.lib") #else