1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

OpenFileName struct: Change default extension type (char8* -> char16*)

This commit is contained in:
Hiroko 2021-04-04 18:10:46 +02:00
parent f34424a61d
commit 9fe7df9950
2 changed files with 2 additions and 2 deletions

View file

@ -425,7 +425,7 @@ namespace System.IO
ofn.mCustData = (int)Internal.UnsafeCastToPtr(this);
ofn.mFlagsEx = Windows.OFN_USESHELLITEM;
if (mDefaultExt != null && AddExtension)
ofn.mDefExt = mDefaultExt;
ofn.mDefExt = mDefaultExt.ToScopedNativeWChar!::();
DeleteContainerAndItems!(mFileNames);
mFileNames = null;

View file

@ -120,7 +120,7 @@ namespace System
public int32 mFlags;
public int16 mFileOffset = 0;
public int16 mFileExtension = 0;
public char8* mDefExt;
public char16* mDefExt;
public int mCustData = 0;
public WndProc mHook;
public char16* mTemplateName = null;