Module: wine Branch: master Commit: 197a7164247328913ec43a3794f542e26091590e URL: http://source.winehq.org/git/wine.git/?a=commit;h=197a7164247328913ec43a3794...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Sun Aug 8 15:45:46 2010 +0400
comctl32/monthcal: Remove macro used once.
---
dlls/comctl32/monthcal.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/dlls/comctl32/monthcal.c b/dlls/comctl32/monthcal.c index 42f217c..bf7ea7a 100644 --- a/dlls/comctl32/monthcal.c +++ b/dlls/comctl32/monthcal.c @@ -156,8 +156,6 @@ enum nav_direction DIRECTION_FORWARD };
-#define MONTHCAL_GetInfoPtr(hwnd) ((MONTHCAL_INFO *)GetWindowLongPtrW(hwnd, 0)) - /* helper functions */
/* send a single MCN_SELCHANGE notification */ @@ -2661,11 +2659,10 @@ MONTHCAL_GetUnicodeFormat(const MONTHCAL_INFO *infoPtr) static LRESULT WINAPI MONTHCAL_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { - MONTHCAL_INFO *infoPtr; + MONTHCAL_INFO *infoPtr = (MONTHCAL_INFO *)GetWindowLongPtrW(hwnd, 0);
TRACE("hwnd=%p msg=%x wparam=%lx lparam=%lx\n", hwnd, uMsg, wParam, lParam);
- infoPtr = MONTHCAL_GetInfoPtr(hwnd); if (!infoPtr && (uMsg != WM_CREATE)) return DefWindowProcW(hwnd, uMsg, wParam, lParam); switch(uMsg)