1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-23 18:18:00 +02:00

Merge pull request #989 from Hiroko103/master

OpenFileName struct: Change default extension type (char8* -> char16*)
This commit is contained in:
Brian Fiete 2021-04-11 07:00:59 -04:00 committed by GitHub
commit 8eda61b8ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;