08-20-2023, 06:20 PM
(08-20-2023, 06:15 PM)Jack Wrote: with all due respect to a740g, I am not comfortable with the padding in MENUITEMINFO80 is correct.
this C code prints 80 as the size of MENUITEMINFO
Code: (Select All)#include <stdio.h>
#include <windows.h>
#include <winuser.h>
int main(void){
printf("%lld\n", sizeof(MENUITEMINFO));
return 0;
}
Quote:Len of MENUITEMINFO = 80Steve is correct. Without the padding it will be far less than 80 and crash.
sizeof(MENUITEMINFO) = 80