Jacek Caban jacek@codeweavers.com writes:
@@ -39,6 +39,13 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
#define HTMLWINDOW2_THIS(iface) DEFINE_THIS(HTMLWindow, HTMLWindow2, iface)
+typedef struct {
- struct list entry;
- HTMLWindow *window;
+} window_list_t;
+static struct list window_list = LIST_INIT(window_list);
The right way to build a list of windows is to put the list entry directly in the HTMLWindow structure, there's no need for a separate structure.