[PATCH 1/4] include: Fix the definition of NOTIFYICON_VERSION[_4].

Zebediah Figura z.figura12 at gmail.com
Sat Jan 30 13:54:30 CST 2021


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/winemac.drv/systray.c  | 2 +-
 dlls/winex11.drv/systray.c  | 2 +-
 include/shellapi.h          | 4 ++--
 programs/explorer/systray.c | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dlls/winemac.drv/systray.c b/dlls/winemac.drv/systray.c
index 75bca5e3d51..90d2430869d 100644
--- a/dlls/winemac.drv/systray.c
+++ b/dlls/winemac.drv/systray.c
@@ -283,7 +283,7 @@ static BOOL notify_owner(struct tray_icon *icon, UINT msg, int x, int y)
     WPARAM wp = icon->id;
     LPARAM lp = msg;
 
-    if (icon->version >= NOTIFY_VERSION_4)
+    if (icon->version >= NOTIFYICON_VERSION_4)
     {
         wp = MAKEWPARAM(x, y);
         lp = MAKELPARAM(msg, icon->id);
diff --git a/dlls/winex11.drv/systray.c b/dlls/winex11.drv/systray.c
index 3be4bd65347..952bc1ef266 100644
--- a/dlls/winex11.drv/systray.c
+++ b/dlls/winex11.drv/systray.c
@@ -441,7 +441,7 @@ static BOOL notify_owner( struct tray_icon *icon, UINT msg, LPARAM lparam )
     WPARAM wp = icon->id;
     LPARAM lp = msg;
 
-    if (icon->version >= NOTIFY_VERSION_4)
+    if (icon->version >= NOTIFYICON_VERSION_4)
     {
         POINT pt = { (short)LOWORD(lparam), (short)HIWORD(lparam) };
 
diff --git a/include/shellapi.h b/include/shellapi.h
index 0f10690f7e0..e02869f14e8 100644
--- a/include/shellapi.h
+++ b/include/shellapi.h
@@ -378,8 +378,8 @@ void WINAPI WinExecErrorW(HWND hwnd,INT error, LPCWSTR lpstrFileName, LPCWSTR lp
 #define NIM_SETFOCUS            0x00000003
 #define NIM_SETVERSION          0x00000004
 
-#define NOTIFY_VERSION   3     /* supported by Windows 2000 and later */
-#define NOTIFY_VERSION_4 4     /* supported by Windows Vista */
+#define NOTIFYICON_VERSION   3
+#define NOTIFYICON_VERSION_4 4
 
 /* callback message lParam values */
 #define NIN_SELECT              (WM_USER+0)
diff --git a/programs/explorer/systray.c b/programs/explorer/systray.c
index dcd75f4e763..5f4fc60dbf3 100644
--- a/programs/explorer/systray.c
+++ b/programs/explorer/systray.c
@@ -723,7 +723,7 @@ static BOOL notify_owner( struct icon *icon, UINT msg, POINT pt )
     WPARAM wp = icon->id;
     LPARAM lp = msg;
 
-    if (icon->version >= NOTIFY_VERSION_4)
+    if (icon->version >= NOTIFYICON_VERSION_4)
     {
         ClientToScreen( tray_window, &pt );
         wp = MAKEWPARAM( pt.x, pt.y );
-- 
2.30.0




More information about the wine-devel mailing list