From 002027f738e43d0fe69e397f6f69aef9d9aaec28 Mon Sep 17 00:00:00 2001 From: Aetopia <41850963+Aetopia@users.noreply.github.com> Date: Thu, 26 Sep 2024 22:23:24 +0530 Subject: [PATCH] Update README.md --- README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 441a30b..22ae0ce 100644 --- a/README.md +++ b/README.md @@ -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`. @@ -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, &_); @@ -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); } ```