Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
888 B

  1. ; The 32-bit wrapper for GetCharWidth converted iLastChar into a nCnt
  2. ; for the thunk compiler's convenience. Here, we transform it back.
  3. ;
  4. PUSH__GETCHARWIDTHAWRAPPER_nCnt macro iOffset, iIgnore
  5. mov eax, dword ptr [ebp + iOffset]
  6. add eax, dword ptr [ebp + iOffset - 4]
  7. dec eax
  8. push ax
  9. endm
  10. PUSH__GETCHARWIDTHWWRAPPER_nCnt macro iOffset, iIgnore
  11. mov eax, dword ptr [ebp + iOffset]
  12. add eax, dword ptr [ebp + iOffset - 4]
  13. dec eax
  14. push ax
  15. endm
  16. ; The 32-bit wrapper for GetCharABCWidths converted iLastChar into a nCnt
  17. ; for the thunk compiler's convenience. Here, we transform it back.
  18. ;
  19. PUSH__GETCHARABCWIDTHSAWRAPPER_nCnt macro iOffset, iIgnore
  20. mov eax, dword ptr [ebp + iOffset]
  21. add eax, dword ptr [ebp + iOffset - 4]
  22. dec eax
  23. push ax
  24. endm