Some glitches:
WARNING: possibly unused argument(s) detected.
Code block name: MbArrayPlot2 (1028)
- apmargins
- xEnd1
Both are arguments, and are being used:
MbArrayPlot2 proc uses esi ebx arrID, arrTypeAndFlags, apmargins, DotCol, DotSize, xStart, xEnd1 ; setrange
mov eax, xEnd1
test eax, eax
.if Sign? ; default: -1 (0 would mean a single point, valid)
mov eax, [esi-8] ; # elements
.endif
mov ebx, apmargins ; apMargins in ArrayPlot macro
.if ebx<30
WARNING: possibly unused argument(s) detected.
Code block name: giDownload (1921)
- private
giDownload proc private uses esi ebx giEbx
WARNING: possibly unused argument(s) detected.
Code block name: Chkjj (3315)
- arg
if 0
.data?
cjj dd ?
.code
Chkjj proc arg
pushad
mov ecx, MenuTable[4*12]
.if ecx>127
mov eax, [ecx]
.if eax!=cjj
; deb 4, "CJJ####", ecx, eax, $arg <<<<<<<<<<<<<<<<<<<<<<<<<
mov cjj, eax
.endif
.endif
popad
@MbRet
Chkjj endp
endif
Correctly recognised, except that the whole code is IF 0 ... ENDIF.
ERROR: possibly unpreserved register detected.
Code block name: RepString (12486)
Used registers: edi esi
RepString proc uses esi edi ecx Dest, Pattern, Repl
ERROR: possibly unpreserved register detected.
Code block name: ForceTextColP (17710)
Used registers: ebx
ForceTextColP proc ; arg
push ebx
mov ebx, [esp+8]
.if GetSelCol(0)!=ebx
invoke SetSelFormat, ebx, CFM_COLOR
.endif
pop ebx
retn 4
ForceTextColP endp
ERROR: possibly unpreserved register detected.
Code block name: InsDate (22935)
Used registers: esi
InsDate proc
LOCAL txrg:TEXTRANGE
GetCurSel
.if eax<127
mov txrg.chrg.cpMin, edx
add eax, edx
mov txrg.chrg.cpMax, eax ; overwrite
push esi
mov esi, SelXXL$
invoke GetDateFormat, 0809h, DATE_LONGDATE, 0, 0, esi, 127 ; Country codes: see MSDN
invoke RepSel, addr txrg, esi ; we insert date & time separately to enable undo of time
GetCurSel
mov txrg.chrg.cpMin, edx
mov txrg.chrg.cpMax, edx ; Start=end, insert
invoke lstrcpy, esi, chr$(", ")
lea edx, [esi+Len(esi)]
invoke GetTimeFormat, 0, 0, 0, chr$("HH':'mm':'ss"), edx, 127
invoke RepSel, addr txrg, esi
pop esi
.endif
@MbRet
InsDate endp