다음을 통해 공유


PREfast Warning 261 (Windows CE 5.0)

Send Feedback

261 - MustSucceed pool allocations are forbidden.
Consequence: MustSucceed allocation failures cause a system crash.

This warning is specific to the Windows NT Kernel-mode.

This warning indicates an attempt to allocate MustSucceed pool.

MustSucceed pool allocations fail by causing the system to stop responding, so its use in Windows XP and later has been prohibited.

Example

Defective Source

char *b;

b =  (char *)ExAllocatePoolWithTag(NonPagedPoolMustSucceed,
                          100,
                          ' gaT');

Corrected Source

char *b;

b = (char *)ExAllocatePoolWithTag(NonPagedPool,
                          100,
                          ' gaT');

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.