mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:26:10 +00:00
CallProc[Ex]32W called with lpProcAddress==NULL should return zero and
not crash.
This commit is contained in:
parent
cbebcd280c
commit
76e07b9f86
1 changed files with 3 additions and 1 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue