comparison src/gui_w32.c @ 7009:286fd54c7ae3 v7.4.822

patch 7.4.822 Problem: More problems reported by coverity. Solution: Avoid the warnings. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Tue, 11 Aug 2015 19:14:00 +0200
parents dc96dd80aef8
children 320c97a73272
comparison
equal deleted inserted replaced
7008:7ce1f4e998bb 7009:286fd54c7ae3
15 * George V. Reilly <george@reilly.org> wrote the original Win32 GUI. 15 * George V. Reilly <george@reilly.org> wrote the original Win32 GUI.
16 * Robert Webb reworked it to use the existing GUI stuff and added menu, 16 * Robert Webb reworked it to use the existing GUI stuff and added menu,
17 * scrollbars, etc. 17 * scrollbars, etc.
18 * 18 *
19 * Note: Clipboard stuff, for cutting and pasting text to other windows, is in 19 * Note: Clipboard stuff, for cutting and pasting text to other windows, is in
20 * os_win32.c. (It can also be done from the terminal version). 20 * winclip.c. (It can also be done from the terminal version).
21 * 21 *
22 * TODO: Some of the function signatures ought to be updated for Win64; 22 * TODO: Some of the function signatures ought to be updated for Win64;
23 * e.g., replace LONG with LONG_PTR, etc. 23 * e.g., replace LONG with LONG_PTR, etc.
24 */ 24 */
25 25
74 { 74 {
75 char_u item[256]; 75 char_u item[256];
76 char_u name[128]; 76 char_u name[128];
77 char_u value[128]; 77 char_u value[128];
78 78
79 copy_option_part(&p, item, sizeof(item), ","); 79 copy_option_part(&p, item, sizeof(item), ",");
80 if (p == NULL) 80 if (p == NULL)
81 break; 81 break;
82 q = &item[0]; 82 q = &item[0];
83 copy_option_part(&q, name, sizeof(name), ":"); 83 copy_option_part(&q, name, sizeof(name), ":");
84 if (q == NULL) 84 if (q == NULL)
1225 GetWindowRect(s_textArea, &rct); 1225 GetWindowRect(s_textArea, &rct);
1226 if (yPos < rct.top) 1226 if (yPos < rct.top)
1227 return result; 1227 return result;
1228 } 1228 }
1229 #endif 1229 #endif
1230 gui_mch_get_winpos(&x, &y); 1230 (void)gui_mch_get_winpos(&x, &y);
1231 xPos -= x; 1231 xPos -= x;
1232 1232
1233 if (xPos < 48) /* <VN> TODO should use system metric? */ 1233 if (xPos < 48) /* <VN> TODO should use system metric? */
1234 return HTBOTTOMLEFT; 1234 return HTBOTTOMLEFT;
1235 else 1235 else