From 08e250ee690dae26c05708887e7668f71fffb33d Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 28 Jan 1999 08:59:26 +0000 Subject: [PATCH] Fixed loading of win32 drivers. --- windows/driver.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/windows/driver.c b/windows/driver.c index fa156ba73a7..e0f12066ecf 100644 --- a/windows/driver.c +++ b/windows/driver.c @@ -591,9 +591,8 @@ static HDRVR32 DRIVER_TryOpenDriver32(LPCSTR lpFileName, LPARAM lParam) lpSFN = strrchr(lpFileName, '\\'); lpSFN = (lpSFN) ? (lpSFN + 1) : lpFileName; - /* FIXME need not to pass LPVOID(-1) */ - if ((hModule = LoadModule32(lpFileName, (LPVOID)-1)) != 0) { - if ((lpProc = GetProcAddress32(hModule, "DRIVERPROC")) != NULL) { + if ((hModule = LoadLibrary32A(lpFileName)) != 0) { + if ((lpProc = GetProcAddress32(hModule, "DriverProc")) != NULL) { lpDrv = DRIVER_RegisterDriver32(lpSFN, hModule, lpProc, lParam); } else { TRACE(driver, "No DriverProc found\n");