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.
This commit is contained in:
jp9000
2015-01-07 05:26:32 -08:00
parent 95f0b1065e
commit 428a7def16

View File

@@ -1,3 +1,4 @@
#define PSAPI_VERSION 1
#include <obs.h>
#include <util/dstr.h>