Francois Gouget : user32/tests: Don' t use nameless unions where they are not needed.

Alexandre Julliard julliard at winehq.org
Fri Oct 12 05:22:56 CDT 2007


Module: wine
Branch: master
Commit: 6fc6b23287eb131b2a2b4febebe3671a25952def
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6fc6b23287eb131b2a2b4febebe3671a25952def

Author: Francois Gouget <fgouget at free.fr>
Date:   Thu Oct 11 18:33:16 2007 +0200

user32/tests: Don't use nameless unions where they are not needed.

---

 dlls/user32/tests/msg.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/dlls/user32/tests/msg.c b/dlls/user32/tests/msg.c
index 82dd503..a73e6b9 100644
--- a/dlls/user32/tests/msg.c
+++ b/dlls/user32/tests/msg.c
@@ -65,7 +65,7 @@ typedef struct
             UINT state   : 16; /* ODS_* flags */
         } item;
         LPARAM lp;
-    };
+    } u;
 } DRAW_ITEM_STRUCT;
 
 static BOOL test_DestroyWindow_flag;
@@ -6303,13 +6303,13 @@ static LRESULT WINAPI ParentMsgCheckProcA(HWND hwnd, UINT message, WPARAM wParam
                 trace("WM_DRAWITEM: type %x, ctl_id %x, item_id %x, action %x, state %x\n",
                       dis->CtlType, dis->CtlID, dis->itemID, dis->itemAction, dis->itemState);
 
-                di.item.type = dis->CtlType;
-                di.item.ctl_id = dis->CtlID;
-                di.item.item_id = dis->itemID;
-                di.item.action = dis->itemAction;
-                di.item.state = dis->itemState;
+                di.u.item.type = dis->CtlType;
+                di.u.item.ctl_id = dis->CtlID;
+                di.u.item.item_id = dis->itemID;
+                di.u.item.action = dis->itemAction;
+                di.u.item.state = dis->itemState;
 
-                lParam = di.lp;
+                lParam = di.u.lp;
                 break;
             }
         }




More information about the wine-cvs mailing list