On Tue May 7 08:37:34 2024 +0000, Zhiyi Zhang wrote:
When full is false, dmDriverExtra is zero, however, memory is still allocated at the end of DEVMODE, isn’t that gonna break when NEXT_DEVMODEW is used when full is false?
I don't understand? This is used to iterate in an array of DEVMODEW, the allocated array might be larger than what is actually used but that doesn't matter? NEXT_DEVMODEW will be used to move to the next devmode in the array and fill it.