http://bugs.winehq.org/show_bug.cgi?id=46254
Maotong Zhang zmtong1988@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zmtong1988@gmail.com
--- Comment #4 from Maotong Zhang zmtong1988@gmail.com --- (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?