comparison src/gui_w32.c @ 10440:f54e4c691de4 v8.0.0114

commit https://github.com/vim/vim/commit/b04a98f6c3cca14bf055934b0a793f4dc376858b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 1 20:32:29 2016 +0100 patch 8.0.0114 Problem: Coding style not optimal. Solution: Add spaces. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Thu, 01 Dec 2016 20:45:04 +0100
parents 935bdb919a50
children 04eb70c77cf4
comparison
equal deleted inserted replaced
10439:fed4e956f530 10440:f54e4c691de4
3549 3549
3550 /* Convert the filter to Windows format. */ 3550 /* Convert the filter to Windows format. */
3551 filterp = convert_filterW(filter); 3551 filterp = convert_filterW(filter);
3552 3552
3553 vim_memset(&fileStruct, 0, sizeof(OPENFILENAMEW)); 3553 vim_memset(&fileStruct, 0, sizeof(OPENFILENAMEW));
3554 #ifdef OPENFILENAME_SIZE_VERSION_400W 3554 # ifdef OPENFILENAME_SIZE_VERSION_400W
3555 /* be compatible with Windows NT 4.0 */ 3555 /* be compatible with Windows NT 4.0 */
3556 fileStruct.lStructSize = OPENFILENAME_SIZE_VERSION_400W; 3556 fileStruct.lStructSize = OPENFILENAME_SIZE_VERSION_400W;
3557 #else 3557 # else
3558 fileStruct.lStructSize = sizeof(fileStruct); 3558 fileStruct.lStructSize = sizeof(fileStruct);
3559 #endif 3559 # endif
3560 3560
3561 if (title != NULL) 3561 if (title != NULL)
3562 titlep = enc_to_utf16(title, NULL); 3562 titlep = enc_to_utf16(title, NULL);
3563 fileStruct.lpstrTitle = titlep; 3563 fileStruct.lpstrTitle = titlep;
3564 3564
3591 * files that don't exist yet, so I haven't put it in. What about 3591 * files that don't exist yet, so I haven't put it in. What about
3592 * OFN_PATHMUSTEXIST? 3592 * OFN_PATHMUSTEXIST?
3593 * Don't use OFN_OVERWRITEPROMPT, Vim has its own ":confirm" dialog. 3593 * Don't use OFN_OVERWRITEPROMPT, Vim has its own ":confirm" dialog.
3594 */ 3594 */
3595 fileStruct.Flags = (OFN_NOCHANGEDIR | OFN_PATHMUSTEXIST | OFN_HIDEREADONLY); 3595 fileStruct.Flags = (OFN_NOCHANGEDIR | OFN_PATHMUSTEXIST | OFN_HIDEREADONLY);
3596 #ifdef FEAT_SHORTCUT 3596 # ifdef FEAT_SHORTCUT
3597 if (curbuf->b_p_bin) 3597 if (curbuf->b_p_bin)
3598 fileStruct.Flags |= OFN_NODEREFERENCELINKS; 3598 fileStruct.Flags |= OFN_NODEREFERENCELINKS;
3599 #endif 3599 # endif
3600 if (saving) 3600 if (saving)
3601 { 3601 {
3602 if (!GetSaveFileNameW(&fileStruct)) 3602 if (!GetSaveFileNameW(&fileStruct))
3603 return NULL; 3603 return NULL;
3604 } 3604 }