Browse Source

Fixed #221 (InitialFileName not set for OpenFileDialog/SaveFileDialog on windows )

pull/227/head
shcherban 11 years ago
parent
commit
528f767b64
  1. 2
      src/Windows/Perspex.Win32/SystemDialogImpl.cs

2
src/Windows/Perspex.Win32/SystemDialogImpl.cs

@ -41,6 +41,8 @@ namespace Perspex.Win32
var defExt = (dialog as SaveFileDialog)?.DefaultExtension;
var buffer = new char[256];
dialog.InitialFileName?.CopyTo(0, buffer, 0, dialog.InitialFileName.Length);
fixed (char* pBuffer = buffer)
fixed (char* pFilterBuffer = filterBuffer)
fixed (char* pDefExt = defExt)

Loading…
Cancel
Save