Skip to content
Snippets Groups Projects
Commit 08e250ee authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard
Browse files

Fixed loading of win32 drivers.

parent 9416abaf
Branches
Tags
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment