wineps: Add a comment about the trap for code checking tools.

This commit is contained in:
Alexandre Julliard 2010-09-21 15:55:33 +02:00
parent c0ff1aec03
commit 1f3873aae7
1 changed files with 1 additions and 0 deletions

View File

@ -271,6 +271,7 @@ static LPDEVMODEA DEVMODEdupWtoA(HANDLE heap, const DEVMODEW *dmW)
LPDEVMODEA dmA;
DWORD size;
BOOL Formname;
/* there is no pointer dereference here, if your code checking tool complains it's broken */
ptrdiff_t off_formname = (const char *)dmW->dmFormName - (const char *)dmW;
if(!dmW) return NULL;