rehook ShowCursor

This commit is contained in:
Hay1tsme 2024-04-07 17:55:55 -04:00
parent 434382ce4b
commit 94f9357382

View File

@ -25,10 +25,10 @@ static const struct hook_symbol cursor_syms[] = {
},*/ { },*/ {
.name = "SetPhysicalCursorPos", .name = "SetPhysicalCursorPos",
.patch = my_SetPhysicalCursorPos .patch = my_SetPhysicalCursorPos
}, /*{ }, {
.name = "ShowCursor", .name = "ShowCursor",
.patch = my_ShowCursor .patch = my_ShowCursor
}*/ }
}; };
void cursor_hook_init() void cursor_hook_init()
@ -56,13 +56,11 @@ static BOOL my_SetPhysicalCursorPos(int x, int y)
static int my_ShowCursor(BOOL bShow) static int my_ShowCursor(BOOL bShow)
{ {
dprintf("my_ShowCursor Hit!\n");
return 0; return 0;
} }
static HCURSOR my_SetCursor(HCURSOR hCursor) static HCURSOR my_SetCursor(HCURSOR hCursor)
{ {
dprintf("my_SetCursor Hit!\n");
HCURSOR fake_cursor; HCURSOR fake_cursor;
if ( hCursor ) if ( hCursor )