Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 946 Bytes

c28125.md

File metadata and controls

35 lines (28 loc) · 946 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Warning C28125
Warning C28125
11/04/2016
C28125
C28125
3f7b8db4-6a64-4480-919e-3f3ceca7f948

Warning C28125

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.

Example

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
}