Skip to content

Commit

Permalink
Various WIP fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sancarn committed Jun 28, 2024
1 parent 3896185 commit 710e509
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/WIP/stdCOM_Pointer/callbyname_thunk_x64.asm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/WIP/stdIResource.cls
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Public Property Get Hash(Optional iType as EResourceHashType) as string: End Pro

'Obtains a collection of children
'@returns {Collection<stdIResource>}
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.
Expand Down

0 comments on commit 710e509

Please sign in to comment.