mirror of
https://github.com/reactos/reactos.git
synced 2024-08-29 22:58:34 +00:00
- Use SEH in LdrGetProcedureAddress. It fixes an exception in "kernel32_winetest module" and some wine tests
svn path=/trunk/; revision=40522
This commit is contained in:
parent
8bb2786d95
commit
17e2ab8999
|
@ -2486,6 +2486,8 @@ LdrGetProcedureAddress (IN PVOID BaseAddress,
|
|||
DPRINT("LdrGetProcedureAddress (BaseAddress %p Name %Z Ordinal %lu ProcedureAddress %p)\n",
|
||||
BaseAddress, Name, Ordinal, ProcedureAddress);
|
||||
|
||||
_SEH2_TRY
|
||||
{
|
||||
if (Name && Name->Length)
|
||||
{
|
||||
/* by name */
|
||||
|
@ -2507,6 +2509,12 @@ LdrGetProcedureAddress (IN PVOID BaseAddress,
|
|||
}
|
||||
DPRINT("LdrGetProcedureAddress: Can't resolve symbol @%lu\n", Ordinal);
|
||||
}
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
/* Ignore exception and return */
|
||||
}
|
||||
_SEH2_END;
|
||||
return STATUS_PROCEDURE_NOT_FOUND;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue