فهرست منبع

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 سال پیش
والد
کامیت
428a7def16
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  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>