[WS2_32] Use SEH in WSCGetProviderPath()

This commit is contained in:
Pierre Schweitzer 2019-02-23 13:34:28 +01:00
parent 2e797accd3
commit d1598788cd
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -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)