Zebediah Figura : include: Fix the definition of NOTIFYICON_VERSION[_4].

Alexandre Julliard julliard at winehq.org
Mon Feb 1 16:13:07 CST 2021


Module: wine
Branch: master
Commit: d91a87cea22293ea6ca4586fc4f832329b141524
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=d91a87cea22293ea6ca4586fc4f832329b141524

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Sat Jan 30 13:54:30 2021 -0600

include: Fix the definition of NOTIFYICON_VERSION[_4].

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 );




More information about the wine-cvs mailing list