Compartilhar via


PREfast Warning 329 (Windows CE 5.0)

Send Feedback

329 - Return value for a call to <function> should not be checked against <number>.

CreateFile returns INVALID_HANDLE_VALUE when the operation fails.

Example

Defective Source

if (CreateFile() == NULL)
{
   return;
}

Corrected Source

if (CreateFile() == INVALID_HANDLE_VALUE)
{
   return;
}

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.