From 428a7def16c0d63d19842b61b89ce4fd285bd861 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Wed, 7 Jan 2015 05:26:32 -0800 Subject: [PATCH] win-capture: Use PSAPI GetProcessImageFileName If the PSAPI_VERSION macro is not set to 1 when using GetProcessImageFileName, it will attempt to import it as K32GetProcessImageFileName from kernel32.dll instead of psapi.dll, which breaks compatibility with vista and xp. --- plugins/win-capture/window-helpers.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/win-capture/window-helpers.c b/plugins/win-capture/window-helpers.c index b6963e3b2..22606f95f 100644 --- a/plugins/win-capture/window-helpers.c +++ b/plugins/win-capture/window-helpers.c @@ -1,3 +1,4 @@ +#define PSAPI_VERSION 1 #include #include