Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetopia committed Sep 26, 2024
1 parent 72eaedd commit 002027f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,7 @@ Stonecutter implements this fix as follows:

- Get the current cursor by calling `__x_ABI_CWindows_CUI_CCore_CICoreWindow->get_PointerCursor`.

- Call the original `__x_ABI_CWindows_CUI_CCore_CICoreWindow->put_PointerCursor` method to change the cursor.

- If the cursor was `null` & changed successfully:
- If the cursor is `null`:

- Get the current bounds of the window by calling `__x_ABI_CWindows_CUI_CCore_CICoreWindow->get_Bounds`.

Expand All @@ -195,9 +193,8 @@ HRESULT put_PointerCursor(__x_ABI_CWindows_CUI_CCore_CICoreWindow *This, __x_ABI
{
__x_ABI_CWindows_CUI_CCore_CICoreCursor *pCursor = NULL;
This->lpVtbl->get_PointerCursor(This, &pCursor);
HRESULT hResult = _put_PointerCursor(This, value);

if (!pCursor && !hResult)
if (!pCursor)
{
__x_ABI_CWindows_CFoundation_CRect _ = {};
This->lpVtbl->get_Bounds(This, &_);
Expand All @@ -211,7 +208,7 @@ HRESULT put_PointerCursor(__x_ABI_CWindows_CUI_CCore_CICoreWindow *This, __x_ABI
else
pCursor->lpVtbl->Release(pCursor);

return hResult;
return _put_PointerCursor(This, value);
}
```
Expand Down

0 comments on commit 002027f

Please sign in to comment.