In the Exceptions Section it gives an example use of `PAL_TRY`,
but the parameters to the `PAL_TRY` need to be passed as an argument,
and cannot be implicit. This commit brings the change inline with
the programming model.
write this:
BOOL OneShot = TRUE;
-
- PAL_TRY
+ struct Param {
+ BSTR* pBSTR;
+ int length;
+ };
+ struct Param param;
+ param.pBSTR = pBSTR;
+
+ PAL_TRY(Param*, pParam, ¶m)
{
- length = SysStringLen(pBSTR);
+ pParam->length = SysStringLen(pParam->pBSTR);
}
PAL_EXCEPT_FILTER(CallOutFilter, &OneShot)
{