http://bugs.winehq.org/show_bug.cgi?id=46254
--- Comment #5 from Janne janne.kekkonen@gmail.com --- (In reply to Maotong Zhang from comment #4)
(In reply to Janne from comment #3)
Created attachment 79049 [details] EnumResourceTypesA test code
I made simpple application which calls EnumResourceTypesA.
Application was tested on Wine 10.9 and on Windows 11.
In case callback function returns TRUE. EnumResourceTypesA returns TRUE In Windows11: GetLastError returns 126. In Wine: GetLastError returns 126.
If callback function returns FALSE. EnumResourceTypesA returns FALSE. In Windows11: GetLastError returns 15106. In Wine: GetLastError returns 126.
If callback function pointer is NULL.
In Windows11: EnumResourceTypesA returns FALSE. GetLastError returns: 998.
Wine Crashes.
Source of my test application attached.
In what situations is it necessary to pass NULL to EnumResourceTypes?
Most likely thee are not situations where NULL is passed to EnumResourceTypes. But there seems to be a difference in behavior between Wine & Windows.