Commit 08e250ee authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Fixed loading of win32 drivers.

parent 9416abaf
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment