mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 05:26:58 +00:00
[WS2_32] Use SEH in WSCGetProviderPath()
This commit is contained in:
parent
2e797accd3
commit
d1598788cd
|
@ -350,6 +350,8 @@ WSCGetProviderPath(IN LPGUID lpProviderId,
|
|||
/* Get the catalog */
|
||||
Catalog = WsProcGetNsCatalog(Process);
|
||||
|
||||
_SEH2_TRY
|
||||
{
|
||||
/* Setup the context */
|
||||
Context.ProviderId = *lpProviderId;
|
||||
Context.ProviderDllPath = lpszProviderDllPath;
|
||||
|
@ -396,6 +398,12 @@ WSCGetProviderPath(IN LPGUID lpProviderId,
|
|||
{
|
||||
ErrorCode = Context.ErrorCode;
|
||||
}
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
ErrorCode = WSAEFAULT;
|
||||
}
|
||||
_SEH2_END;
|
||||
|
||||
/* Do we have to return failure? */
|
||||
if (ErrorCode != ERROR_SUCCESS)
|
||||
|
|
Loading…
Reference in a new issue