summaryrefslogtreecommitdiff
path: root/src/libw32dll/wine/afl.c
diff options
context:
space:
mode:
authoruid56437 <none@none>2001-07-04 14:05:09 +0000
committeruid56437 <none@none>2001-07-04 14:05:09 +0000
commit0342d76c613911b282e14a1188326075d1d43bca (patch)
tree0547e6dd8fa7fa400a06d793642cd03855d6ccc5 /src/libw32dll/wine/afl.c
parent2806c8c5cd03db19886b75fa05b6e50d7d4815e1 (diff)
downloadxine-lib-0342d76c613911b282e14a1188326075d1d43bca.tar.gz
xine-lib-0342d76c613911b282e14a1188326075d1d43bca.tar.bz2
Add prototypes for all functions in wine/*, to catch __stdcall function
attribute mismatches between function prototypes and function definitions. Such a __stdcall mismatch can corrupt the cpu's stack, because both the caller and the callee clean up function parameter from the stack (or none of them removes the function parameters) wine/* should be less sensitive to optimzation options due to this change. CVS patchset: 245 CVS date: 2001/07/04 14:05:09
Diffstat (limited to 'src/libw32dll/wine/afl.c')
-rw-r--r--src/libw32dll/wine/afl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libw32dll/wine/afl.c b/src/libw32dll/wine/afl.c
index 2a6768db0..9e009d331 100644
--- a/src/libw32dll/wine/afl.c
+++ b/src/libw32dll/wine/afl.c
@@ -22,6 +22,7 @@
#include "config.h"
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include "winbase.h"
@@ -38,9 +39,7 @@
#pragma pack(1)
#define OpenDriverA DrvOpen
-extern HDRVR VFWAPI DrvOpen(long);
#define CloseDriver DrvClose
-extern HDRVR VFWAPI DrvClose(long);
static PWINE_ACMSTREAM ACM_GetStream(HACMSTREAM has)
{
@@ -274,7 +273,7 @@ PWINE_ACMDRIVERID MSACM_RegisterDriver(LPSTR pszDriverAlias, LPSTR pszFileName,
{
PWINE_ACMDRIVERID padid;
- TRACE("('%s', '%x', 0x%08x)\n", pszDriverAlias, pszFileName, hinstModule);
+ TRACE("('%s', '%s', 0x%08x)\n", pszDriverAlias, pszFileName, hinstModule);
padid = (PWINE_ACMDRIVERID) HeapAlloc(MSACM_hHeap, 0, sizeof(WINE_ACMDRIVERID));
padid->pszDriverAlias = (char*)malloc(strlen(pszDriverAlias)+1);