CallProc[Ex]32W called with lpProcAddress==NULL should return zero and

not crash.
This commit is contained in:
Rein Klazes 1998-10-18 10:04:31 +00:00 committed by Alexandre Julliard
parent cbebcd280c
commit 76e07b9f86

View file

@ -461,7 +461,9 @@ static DWORD RELAY_CallProc32W(int Ex)
dsprintf(relay,"])");
VA_END16( valist );
switch (nrofargs) {
if (!proc32) ret = 0;
else switch (nrofargs)
{
case 0: ret = proc32();
break;
case 1: ret = proc32(args[0]);