Skip to content

Commit 3e282d2

Browse files
committed
Fixed: Unreferenced parameter
1 parent 3087705 commit 3e282d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

WinHttp.au3

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2159,7 +2159,7 @@ Func __WinHttpHTML5FormAttribs(ByRef $aDtas, ByRef $aFlds, ByRef $iNumParams, By
21592159
$iImgCur += 1
21602160
EndSwitch
21612161
Next
2162-
ElseIf $aSpl[0] = "name" Then
2162+
ElseIf $aSpl[0] = "name" Then
21632163
Local $sInpNme = $aSpl[1], $sType
21642164
For $i = 0 To UBound($aInput) - 1 ; for all input elements
21652165
$sType = __WinHttpAttribVal($aInput[$i], "type")
@@ -2381,13 +2381,14 @@ Func __WinHttpSetCredentials($hRequest, $sHeaders = "", $sOptional = "", $sCredN
23812381
EndFunc
23822382

23832383
Func __WinHttpFormUpload($hRequest, $sHeaders, $sData)
2384+
#forceref $sHeaders ; already added by the caller
23842385
Local $aClbk = _WinHttpSimpleFormFill_SetUploadCallback()
23852386
If $aClbk[0] <> Default Then
23862387
Local $iSize = StringLen($sData), $iChunk = Floor($iSize / $aClbk[1]), $iRest = $iSize - ($aClbk[1] - 1) * $iChunk, $iCurCh = $iChunk
23872388
_WinHttpSendRequest($hRequest, Default, Default, $iSize)
23882389
For $i = 1 To $aClbk[1]
23892390
If $i = $aClbk[1] Then $iCurCh = $iRest
2390-
_WinHttpWriteData($hRequest, StringMid($sData, 1 + $iChunk * ($i -1), $iCurCh))
2391+
_WinHttpWriteData($hRequest, StringMid($sData, 1 + $iChunk * ($i - 1), $iCurCh))
23912392
Call($aClbk[0], Floor($i * 100 / $aClbk[1]))
23922393
Next
23932394
Else

0 commit comments

Comments
 (0)