From 710e509818f0a4af05be6c46d0fecfc6128caa45 Mon Sep 17 00:00:00 2001 From: Sancarn Date: Fri, 28 Jun 2024 13:03:19 +0100 Subject: [PATCH] Various WIP fixes --- src/WIP/stdCOM_Pointer/callbyname_thunk_x64.asm | 6 +++--- src/WIP/stdIResource.cls | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/WIP/stdCOM_Pointer/callbyname_thunk_x64.asm b/src/WIP/stdCOM_Pointer/callbyname_thunk_x64.asm index 33f0c82..ab9a31f 100644 --- a/src/WIP/stdCOM_Pointer/callbyname_thunk_x64.asm +++ b/src/WIP/stdCOM_Pointer/callbyname_thunk_x64.asm @@ -33,11 +33,11 @@ section .text ; 1. Get function pointers from vtable mov rdi, r9 ; pDisp (the object pointer) mov rax, [rdi] ; Load vtable - mov rbx, [rax + 0x18] ; GetIDsOfNames is the 7th function (offset 0x18) - mov rsi, [rax + 0x20] ; Invoke is the 9th function (offset 0x20) + mov rbx, [rax + 0x38] ; GetIDsOfNames is the 7th function (offset 0x38) + mov rsi, [rax + 0x40] ; Invoke is the 9th function (offset 0x40) ; 2. Check reference count - mov eax, [rdi + 0xC] ; Load reference count (example offset, may vary) + mov eax, [rdi + 0x18] ; Load reference count (example offset, may vary) mov [refcount], eax test eax, eax jz zero_refcount_failed ; Jump if reference count is zero diff --git a/src/WIP/stdIResource.cls b/src/WIP/stdIResource.cls index e0cd704..483ef57 100644 --- a/src/WIP/stdIResource.cls +++ b/src/WIP/stdIResource.cls @@ -60,7 +60,7 @@ Public Property Get Hash(Optional iType as EResourceHashType) as string: End Pro 'Obtains a collection of children '@returns {Collection} -Public Property Get Children() as Collection: End Function +Public Property Get Children() as Collection: End Property 'Copies the current resource to another existing resource container. '@param {stdIResource} The resource to copy this resource to.