diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-05-24 11:59:29 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-05-24 11:59:29 +0200 |
commit | 7db5fc838a7f701e495d41b0ff6a070591c84340 (patch) | |
tree | ac8f061dafa07580e8b6cf3fedcd290a9f43d3ac /src/os_mswin.c | |
parent | 55debbe38429b81c0ce6e8400aef36812eb151d7 (diff) | |
download | vim-git-7db5fc838a7f701e495d41b0ff6a070591c84340.tar.gz |
Fix uninit memory read in undo code. Fix uint32_t in proto file.
A few minor changes.
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r-- | src/os_mswin.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c index c3588e6f5..2e692a70e 100644 --- a/src/os_mswin.c +++ b/src/os_mswin.c @@ -2077,7 +2077,7 @@ mch_print_init(prt_settings_T *psettings, char_u *jobname, int forceit) int i; bUserAbort = &(psettings->user_abort); - memset(&prt_dlg, 0, sizeof(PRINTDLG)); + vim_memset(&prt_dlg, 0, sizeof(PRINTDLG)); prt_dlg.lStructSize = sizeof(PRINTDLG); #ifndef FEAT_GUI GetConsoleHwnd(); /* get value of s_hwnd */ @@ -2192,7 +2192,7 @@ mch_print_init(prt_settings_T *psettings, char_u *jobname, int forceit) /* * Initialise the font according to 'printfont' */ - memset(&fLogFont, 0, sizeof(fLogFont)); + vim_memset(&fLogFont, 0, sizeof(fLogFont)); if (get_logfont(&fLogFont, p_pfn, prt_dlg.hDC, TRUE) == FAIL) { EMSG2(_("E613: Unknown printer font: %s"), p_pfn); @@ -2285,7 +2285,7 @@ mch_print_begin(prt_settings_T *psettings) wsprintf(szBuffer, _("Printing '%s'"), gettail(psettings->jobname)); SetDlgItemText(hDlgPrint, IDC_PRINTTEXT1, (LPSTR)szBuffer); - memset(&di, 0, sizeof(DOCINFO)); + vim_memset(&di, 0, sizeof(DOCINFO)); di.cbSize = sizeof(DOCINFO); di.lpszDocName = psettings->jobname; ret = StartDoc(prt_dlg.hDC, &di); @@ -3362,7 +3362,7 @@ get_logfont( #if defined(FEAT_GUI_W32) CHOOSEFONT cf; /* if name is "*", bring up std font dialog: */ - memset(&cf, 0, sizeof(cf)); + vim_memset(&cf, 0, sizeof(cf)); cf.lStructSize = sizeof(cf); cf.hwndOwner = s_hwnd; cf.Flags = CF_SCREENFONTS | CF_FIXEDPITCHONLY | CF_INITTOLOGFONTSTRUCT; |