https://bugs.winehq.org/show_bug.cgi?id=55908
--- Comment #13 from Fabian Maurer dark.shadow4@web.de --- (In reply to Nikolay Sivov from comment #12)
Where is the code for this module?
You can find the code at https://github.com/Wagnerp/Windows-API-CodePack-NET/blob/main/Source/Origina...
Inside source/WindowsAPICodePack/Core/Interop/TaskDialogs/NativeTaskDialog.cs:
private static IntPtr AllocateAndMarshalButtons(TaskDialogNativeMethods.TaskDialogButton[] structs) { IntPtr initialPtr = Marshal.AllocHGlobal( Marshal.SizeOf(typeof(TaskDialogNativeMethods.TaskDialogButton)) * structs.Length);
IntPtr currentPtr = initialPtr; foreach (TaskDialogNativeMethods.TaskDialogButton button in structs) { Marshal.StructureToPtr(button, currentPtr, false); currentPtr = (IntPtr)((int)currentPtr + Marshal.SizeOf(button)); } return initialPtr;
}