On 05/09/07, Stefan Dösinger stefandoesinger@gmx.at wrote:
First, there's the easy problem of the cursors not working. This is because Sims.exe calls LoadCursorFromFile on a bunch of files that contain icons, not cursors. As the only difference between the two is that the cursor has a hotspot in front of it, I added some code to treat the icon as a cursor with no hotspot. Other programs may benefit from this patch, as it seems it is something you can get away with on Windows.
I do not know this Function, but you can find out what really happens on windows by writing a test app that does the same with this function as The Sims. The test should be included in dlls/user32/tests/.
That's a known issue actually. My original cursor patchset solved that by checking the file's magic in CURSORICON_LoadFromFile().