# HG changeset patch # User Daniel Atallah # Date 1124469052 0 # Node ID 12f6164ee2c67c07dc38a58d14af882e88563f71 # Parent a74244102c0a3aeb9ea34cbcc424580fddf251e8 [gaim-migrate @ 13518] I followed rlaager's advice and noticed these warnings when compiling. committer: Tailor Script diff -r a74244102c0a -r 12f6164ee2c6 plugins/win32/winprefs/gtkappbar.c --- a/plugins/win32/winprefs/gtkappbar.c Fri Aug 19 16:04:03 2005 +0000 +++ b/plugins/win32/winprefs/gtkappbar.c Fri Aug 19 16:30:52 2005 +0000 @@ -47,13 +47,13 @@ static gboolean get_rect_from_monitor(HMODULE hmod, HMONITOR monitor, RECT *rect) { gaim_GetMonitorInfo *the_GetMonitorInfo; + MONITORINFO info; if (!(the_GetMonitorInfo = (gaim_GetMonitorInfo*) GetProcAddress(hmod, "GetMonitorInfoA"))) { return FALSE; } - MONITORINFO info; info.cbSize = sizeof(info); if (!the_GetMonitorInfo(monitor, &info)) { return FALSE; @@ -71,18 +71,19 @@ static gboolean get_rect_at_point_multimonitor(POINT pt, RECT *rect) { HMODULE hmod; + gaim_MonitorFromPoint *the_MonitorFromPoint; + HMONITOR monitor; if (!(hmod = GetModuleHandle("user32"))) { return FALSE; } - gaim_MonitorFromPoint *the_MonitorFromPoint; if (!(the_MonitorFromPoint = (gaim_MonitorFromPoint*) GetProcAddress(hmod, "MonitorFromPoint"))) { return FALSE; } - HMONITOR monitor = + monitor = the_MonitorFromPoint(pt, MONITOR_DEFAULTTOPRIMARY); return get_rect_from_monitor(hmod, monitor, rect); @@ -95,18 +96,19 @@ static gboolean get_rect_of_window_multimonitor(HWND window, RECT *rect) { HMODULE hmod; + gaim_MonitorFromWindow *the_MonitorFromWindow; + HMONITOR monitor; if (!(hmod = GetModuleHandle("user32"))) { return FALSE; } - gaim_MonitorFromWindow *the_MonitorFromWindow; if (!(the_MonitorFromWindow = (gaim_MonitorFromWindow*) GetProcAddress(hmod, "MonitorFromWindow"))) { return FALSE; } - HMONITOR monitor = + monitor = the_MonitorFromWindow(window, MONITOR_DEFAULTTOPRIMARY); return get_rect_from_monitor(hmod, monitor, rect);