2009/9/13 Henri Verbeet hverbeet@gmail.com:
2009/9/13 Mike Kaplinskiy mike.kaplinskiy@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.