changeset 20652:0c342e00c63d

Dummy EnumDisplaySettingsA, required by frapsvid.dll 2.8.1
author rtogni
date Sat, 04 Nov 2006 16:25:32 +0000
parents d6b3d471d1cb
children 402484a85b9f
files loader/win32.c
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/loader/win32.c	Sat Nov 04 15:56:11 2006 +0000
+++ b/loader/win32.c	Sat Nov 04 16:25:32 2006 +0000
@@ -4811,6 +4811,17 @@
     return 1;
 }
 
+// This define is fake, the real thing is a struct
+#define LPDEVMODEA void*
+// Dummy implementation, always return 1
+// Required for frapsvid.dll 2.8.1, return value does not matter
+static WIN_BOOL WINAPI expEnumDisplaySettingsA(LPCSTR name ,DWORD n,
+    LPDEVMODEA devmode)
+{
+    dbgprintf("EnumDisplaySettingsA (dummy) => 1\n");
+    return 1;
+}
+
 struct exports
 {
     char name[64];
@@ -5110,6 +5121,7 @@
     FF(DialogBoxParamA, -1)
     FF(RegisterClipboardFormatA, -1)
     FF(CharNextA, -1)
+    FF(EnumDisplaySettingsA, -1)
 };
 struct exports exp_advapi32[]={
     FF(RegCloseKey, -1)