Browse Source

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.
jp9000 11 years ago
parent
commit
428a7def16
1 changed files with 1 additions and 0 deletions
  1. 1 0
      plugins/win-capture/window-helpers.c

+ 1 - 0
plugins/win-capture/window-helpers.c

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