13 Sep
2009
13 Sep
'09
8:54 a.m.
2009/9/13 Henri Verbeet <hverbeet(a)gmail.com>:
2009/9/13 Mike Kaplinskiy <mike.kaplinskiy(a)gmail.com>:
Actually it does dereference something, if you think of dmFormName being an int (not a pointer), then you would be subtracting an address from a random value.
If it were an int, sure, but "dmFormName" is a WCHAR array.
My point was that dmW->foo dereferences dmW to get to foo, being the equivalent of (*dmW).foo. However at present there is no possibility of NULL-dereferencing here as the dmW pointer is validated in the parent functions.