Added mssing Pack = 1 to TASKDIALOG_BUTTON (#351)

Fixes access violation when calling TaskDialogIndirect
pull/363/head
Scover 2022-12-09 16:06:26 +01:00 committed by GitHub
parent f7c4c428be
commit 4fe53616ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -945,7 +945,7 @@ namespace Vanara.PInvoke
/// uses this structure.
/// </summary>
[PInvokeData("Commctrl.h", MSDNShortId = "bb787475")]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode, Pack = 1)]
public struct TASKDIALOG_BUTTON
{
/// <summary>Indicates the value to be returned when this button is selected.</summary>
@ -1243,4 +1243,4 @@ namespace Vanara.PInvoke
}
}
}
}
}