From 6b4b28c977027dd2c910a1f0a1a0491dfb638af3 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Fri, 25 Jan 2008 12:13:24 +0000 Subject: [PATCH] fix build with gcc 4.3.0 svn path=/trunk/; revision=31986 --- reactos/base/shell/explorer/precomp.h | 2 ++ reactos/base/shell/explorer/shell/shellbrowser.h | 1 + reactos/base/shell/explorer/utility/utility.h | 8 ++++++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/reactos/base/shell/explorer/precomp.h b/reactos/base/shell/explorer/precomp.h index 8c68b84966f..a178855a830 100644 --- a/reactos/base/shell/explorer/precomp.h +++ b/reactos/base/shell/explorer/precomp.h @@ -28,6 +28,8 @@ #define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1 #define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT 1 +#include + #include "utility/utility.h" #include "explorer.h" diff --git a/reactos/base/shell/explorer/shell/shellbrowser.h b/reactos/base/shell/explorer/shell/shellbrowser.h index ecd03df1c5d..ead2c2c53c4 100644 --- a/reactos/base/shell/explorer/shell/shellbrowser.h +++ b/reactos/base/shell/explorer/shell/shellbrowser.h @@ -28,6 +28,7 @@ #include "../utility/treedroptarget.h" #include "../utility/shellbrowserimpl.h" +#include /// information structure to hold current shell folder information struct ShellPathInfo diff --git a/reactos/base/shell/explorer/utility/utility.h b/reactos/base/shell/explorer/utility/utility.h index 4442387c99a..0f15c478468 100644 --- a/reactos/base/shell/explorer/utility/utility.h +++ b/reactos/base/shell/explorer/utility/utility.h @@ -677,12 +677,16 @@ struct PopupMenu } int PopupContextMenu(HWND hwnd, POINTS pos, UINT flags=TPM_LEFTBUTTON|TPM_RIGHTBUTTON) { - POINT pt; POINTSTOPOINT(pt, pos); + POINT pt; + pt.x = pos.x; + pt.y = pos.y; return TrackPopupMenuEx(_hmenu, flags, pt.x, pt.y, hwnd, NULL); } int TrackPopupMenu(HWND hwnd, POINTS pos, UINT flags=TPM_LEFTBUTTON|TPM_RIGHTBUTTON) { - POINT pt; POINTSTOPOINT(pt, pos); + POINT pt; + pt.x = pos.x; + pt.y = pos.y; ClientToScreen(hwnd, &pt); return TrackPopupMenuEx(_hmenu, flags, pt.x, pt.y, hwnd, NULL); }