wineps: Add a comment about the trap for code checking tools.
This commit is contained in:
parent
c0ff1aec03
commit
1f3873aae7
dlls/wineps.drv
|
@ -271,6 +271,7 @@ static LPDEVMODEA DEVMODEdupWtoA(HANDLE heap, const DEVMODEW *dmW)
|
||||||
LPDEVMODEA dmA;
|
LPDEVMODEA dmA;
|
||||||
DWORD size;
|
DWORD size;
|
||||||
BOOL Formname;
|
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;
|
ptrdiff_t off_formname = (const char *)dmW->dmFormName - (const char *)dmW;
|
||||||
|
|
||||||
if(!dmW) return NULL;
|
if(!dmW) return NULL;
|
||||||
|
|
Loading…
Reference in New Issue