winspool.drv/tests: Specify the arguments of the function in the
function
Michael Stefaniuc
mstefani at redhat.de
Wed Jun 20 08:27:00 CDT 2007
pointer declaration to permit the compiler to check the number and type of
arguments. Found by sparse.
---
dlls/winspool.drv/tests/info.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/winspool.drv/tests/info.c b/dlls/winspool.drv/tests/info.c
index c743768..6586278 100644
--- a/dlls/winspool.drv/tests/info.c
+++ b/dlls/winspool.drv/tests/info.c
@@ -65,8 +65,8 @@ static WCHAR portname_lpt1W[] = {'L','P','T','1',':',0};
static WCHAR portname_lpt2W[] = {'L','P','T','2',':',0};
static HANDLE hwinspool;
-static FARPROC pGetDefaultPrinterA;
-static FARPROC pSetDefaultPrinterA;
+static BOOL (WINAPI * pGetDefaultPrinterA)(LPSTR, LPDWORD);
+static BOOL (WINAPI * pSetDefaultPrinterA)(LPCSTR);
static DWORD (WINAPI * pXcvDataW)(HANDLE, LPCWSTR, PBYTE, DWORD, PBYTE, DWORD, PDWORD, PDWORD);
static BOOL (WINAPI * pAddPortExA)(LPSTR, DWORD, LPBYTE, LPSTR);
--
1.5.0.6
More information about the wine-patches
mailing list