Commit 4368bd8e authored by Alexandre Julliard's avatar Alexandre Julliard

winecfg: Use nameless unions/structs.

parent c47c4d54
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
*/ */
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#define NONAMELESSUNION
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
*/ */
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#define NONAMELESSUNION
#include <windows.h> #include <windows.h>
#include <commctrl.h> #include <commctrl.h>
...@@ -74,8 +73,8 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner) ...@@ -74,8 +73,8 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner)
psp[pg].dwSize = sizeof (PROPSHEETPAGEW); psp[pg].dwSize = sizeof (PROPSHEETPAGEW);
psp[pg].dwFlags = PSP_USETITLE; psp[pg].dwFlags = PSP_USETITLE;
psp[pg].hInstance = hInstance; psp[pg].hInstance = hInstance;
psp[pg].u.pszTemplate = MAKEINTRESOURCEW (IDD_APPCFG); psp[pg].pszTemplate = MAKEINTRESOURCEW (IDD_APPCFG);
psp[pg].u2.pszIcon = NULL; psp[pg].pszIcon = NULL;
psp[pg].pfnDlgProc = AppDlgProc; psp[pg].pfnDlgProc = AppDlgProc;
psp[pg].pszTitle = load_string (IDS_TAB_APPLICATIONS); psp[pg].pszTitle = load_string (IDS_TAB_APPLICATIONS);
psp[pg].lParam = 0; psp[pg].lParam = 0;
...@@ -88,8 +87,8 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner) ...@@ -88,8 +87,8 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner)
psp[pg].dwSize = sizeof (PROPSHEETPAGEW); psp[pg].dwSize = sizeof (PROPSHEETPAGEW);
psp[pg].dwFlags = PSP_USETITLE; psp[pg].dwFlags = PSP_USETITLE;
psp[pg].hInstance = hInstance; psp[pg].hInstance = hInstance;
psp[pg].u.pszTemplate = MAKEINTRESOURCEW (IDD_DLLCFG); psp[pg].pszTemplate = MAKEINTRESOURCEW (IDD_DLLCFG);
psp[pg].u2.pszIcon = NULL; psp[pg].pszIcon = NULL;
psp[pg].pfnDlgProc = LibrariesDlgProc; psp[pg].pfnDlgProc = LibrariesDlgProc;
psp[pg].pszTitle = load_string (IDS_TAB_DLLS); psp[pg].pszTitle = load_string (IDS_TAB_DLLS);
psp[pg].lParam = 0; psp[pg].lParam = 0;
...@@ -102,8 +101,8 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner) ...@@ -102,8 +101,8 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner)
psp[pg].dwSize = sizeof (PROPSHEETPAGEW); psp[pg].dwSize = sizeof (PROPSHEETPAGEW);
psp[pg].dwFlags = PSP_USETITLE; psp[pg].dwFlags = PSP_USETITLE;
psp[pg].hInstance = hInstance; psp[pg].hInstance = hInstance;
psp[pg].u.pszTemplate = MAKEINTRESOURCEW (IDD_GRAPHCFG); psp[pg].pszTemplate = MAKEINTRESOURCEW (IDD_GRAPHCFG);
psp[pg].u2.pszIcon = NULL; psp[pg].pszIcon = NULL;
psp[pg].pfnDlgProc = GraphDlgProc; psp[pg].pfnDlgProc = GraphDlgProc;
psp[pg].pszTitle = load_string (IDS_TAB_GRAPHICS); psp[pg].pszTitle = load_string (IDS_TAB_GRAPHICS);
psp[pg].lParam = 0; psp[pg].lParam = 0;
...@@ -112,8 +111,8 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner) ...@@ -112,8 +111,8 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner)
psp[pg].dwSize = sizeof (PROPSHEETPAGEW); psp[pg].dwSize = sizeof (PROPSHEETPAGEW);
psp[pg].dwFlags = PSP_USETITLE; psp[pg].dwFlags = PSP_USETITLE;
psp[pg].hInstance = hInstance; psp[pg].hInstance = hInstance;
psp[pg].u.pszTemplate = MAKEINTRESOURCEW (IDD_DESKTOP_INTEGRATION); psp[pg].pszTemplate = MAKEINTRESOURCEW (IDD_DESKTOP_INTEGRATION);
psp[pg].u2.pszIcon = NULL; psp[pg].pszIcon = NULL;
psp[pg].pfnDlgProc = ThemeDlgProc; psp[pg].pfnDlgProc = ThemeDlgProc;
psp[pg].pszTitle = load_string (IDS_TAB_DESKTOP_INTEGRATION); psp[pg].pszTitle = load_string (IDS_TAB_DESKTOP_INTEGRATION);
psp[pg].lParam = 0; psp[pg].lParam = 0;
...@@ -122,8 +121,8 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner) ...@@ -122,8 +121,8 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner)
psp[pg].dwSize = sizeof (PROPSHEETPAGEW); psp[pg].dwSize = sizeof (PROPSHEETPAGEW);
psp[pg].dwFlags = PSP_USETITLE; psp[pg].dwFlags = PSP_USETITLE;
psp[pg].hInstance = hInstance; psp[pg].hInstance = hInstance;
psp[pg].u.pszTemplate = MAKEINTRESOURCEW (IDD_DRIVECFG); psp[pg].pszTemplate = MAKEINTRESOURCEW (IDD_DRIVECFG);
psp[pg].u2.pszIcon = NULL; psp[pg].pszIcon = NULL;
psp[pg].pfnDlgProc = DriveDlgProc; psp[pg].pfnDlgProc = DriveDlgProc;
psp[pg].pszTitle = load_string (IDS_TAB_DRIVES); psp[pg].pszTitle = load_string (IDS_TAB_DRIVES);
psp[pg].lParam = 0; psp[pg].lParam = 0;
...@@ -132,8 +131,8 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner) ...@@ -132,8 +131,8 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner)
psp[pg].dwSize = sizeof (PROPSHEETPAGEW); psp[pg].dwSize = sizeof (PROPSHEETPAGEW);
psp[pg].dwFlags = PSP_USETITLE; psp[pg].dwFlags = PSP_USETITLE;
psp[pg].hInstance = hInstance; psp[pg].hInstance = hInstance;
psp[pg].u.pszTemplate = MAKEINTRESOURCEW (IDD_AUDIOCFG); psp[pg].pszTemplate = MAKEINTRESOURCEW (IDD_AUDIOCFG);
psp[pg].u2.pszIcon = NULL; psp[pg].pszIcon = NULL;
psp[pg].pfnDlgProc = AudioDlgProc; psp[pg].pfnDlgProc = AudioDlgProc;
psp[pg].pszTitle = load_string (IDS_TAB_AUDIO); psp[pg].pszTitle = load_string (IDS_TAB_AUDIO);
psp[pg].lParam = 0; psp[pg].lParam = 0;
...@@ -146,8 +145,8 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner) ...@@ -146,8 +145,8 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner)
psp[pg].dwSize = sizeof (PROPSHEETPAGEW); psp[pg].dwSize = sizeof (PROPSHEETPAGEW);
psp[pg].dwFlags = PSP_USETITLE; psp[pg].dwFlags = PSP_USETITLE;
psp[pg].hInstance = hInstance; psp[pg].hInstance = hInstance;
psp[pg].u.pszTemplate = MAKEINTRESOURCEW (IDD_ABOUTCFG); psp[pg].pszTemplate = MAKEINTRESOURCEW (IDD_ABOUTCFG);
psp[pg].u2.pszIcon = NULL; psp[pg].pszIcon = NULL;
psp[pg].pfnDlgProc = AboutDlgProc; psp[pg].pfnDlgProc = AboutDlgProc;
psp[pg].pszTitle = load_string (IDS_TAB_ABOUT); psp[pg].pszTitle = load_string (IDS_TAB_ABOUT);
psp[pg].lParam = 0; psp[pg].lParam = 0;
...@@ -160,12 +159,12 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner) ...@@ -160,12 +159,12 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner)
psh.dwFlags = PSH_PROPSHEETPAGE | PSH_USEICONID | PSH_USECALLBACK; psh.dwFlags = PSH_PROPSHEETPAGE | PSH_USEICONID | PSH_USECALLBACK;
psh.hwndParent = hOwner; psh.hwndParent = hOwner;
psh.hInstance = hInstance; psh.hInstance = hInstance;
psh.u.pszIcon = MAKEINTRESOURCEW (IDI_WINECFG); psh.pszIcon = MAKEINTRESOURCEW (IDI_WINECFG);
psh.pszCaption = load_string (IDS_WINECFG_TITLE); psh.pszCaption = load_string (IDS_WINECFG_TITLE);
psh.nPages = NUM_PROPERTY_PAGES; psh.nPages = NUM_PROPERTY_PAGES;
psh.u3.ppsp = psp; psh.ppsp = psp;
psh.pfnCallback = PropSheetCallback; psh.pfnCallback = PropSheetCallback;
psh.u2.nStartPage = 0; psh.nStartPage = 0;
/* /*
* Display the modal property sheet * Display the modal property sheet
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment