wininet #1: Store WININETAPPINFOW pointer in WININETHTTPSESSIONW.

Jacek Caban jacek at codeweavers.com
Sun Oct 29 11:48:48 CST 2006


The current code stores pointers to parent handler's object in lpwhparent.
It's quite ugly as the only valid use of this looks like that:

assert(obj1->hdr.htype == SOMETYPE);
obj2 = (obj2_type)pbj1->hdr.lpwfparent;

Instead doing so we may store pointers in objects, not in header, that
have correct types so we won't need casts etc. That's what is addressed
in patches #1-#10. This cleans up code a lot.
---
 dlls/wininet/http.c     |    5 +++++
 dlls/wininet/internet.h |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 71710c63ebf9e9031c7eb54c164104bbdd22039b.diff
Type: text/x-patch
Size: 1224 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061029/8637afef/71710c63ebf9e9031c7eb54c164104bbdd22039b.bin


More information about the wine-patches mailing list