description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: Warning C28125 |
Warning C28125 |
11/04/2016 |
|
|
3f7b8db4-6a64-4480-919e-3f3ceca7f948 |
The function must be called from within a try/except block
The driver is calling a function that must be called from within a try/except block, such as ProbeForRead
, ProbeForWrite
, or MmProbeAndLockPages
.
The following code example generates this warning:
ProbeForRead(addr, len, 4);
The following code example avoids this warning:
__try
{
ProbeForRead(addr, len, 4);
}
__except(EXCEPTION_EXECUTE_HANDLER)
{
Status = GetExceptionCode();
... report error status
}