Compartir a través de


PREfast Warning 321 (Windows CE 5.0)

Send Feedback

321 - Potential use of relative pathname in call to LoadLibrary(A/W/ExA/ExW).

This message indicates that you are passing a relative pathname to LoadLibraryA, LoadLibraryW, LoadLibraryExA, or LoadLibraryExW.

Passing a relative pathname can result in inadvertently picking up the wrong DLL, depending on what the current directory is, which results in a security hole.

Example

Defective Source

LoadLibrary("file.ext");

Corrected Source

LoadLibrary("C:\\file.ext");

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.