Something went wrong. Try again.
Reactos
Something went wrong. Try again.
[REACTOS] Fix LoadCursorW() incorrect usage cases (#7053) master
Fix wrong MAKEINTRESOURCEW() macro usage cases in LoadCursorW() system-wide. MSDN documentation for this function states we need to use MAKEINTRESOURCEW() macro only for internal application-defined cursors (loaded from the app instance specified by hInstance parameter), but not for system-defined cursors (those begin with IDC_* prefix), in case when hInstance is NULL. So get rid from MAKEINTRESOURCEW() macro usage for all cases when hInstance parameter is NULL. And on the contrary, when hInstance is valid and points to the application instance, then use it for the resource identifier.
Author Oleg Dubinskiy Committer GitHub Date (Jul 1, 2024, 4:05 PM UTC) Commit 1a102501 1a1025011f4d5fa2c2332c49401b2f17b033fe3c Parent f57601d1 f57601d14bb252ac95f0d0ab19d33978016d4fa3