mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1137330 - Set opcode as 'PutFinal' instead of 'Put' for file header packet if file size is 0, r=shuang
This commit is contained in:
parent
397bd2f4d5
commit
33c1f8c657
@ -1195,7 +1195,10 @@ BluetoothOppManager::SendPutHeaderRequest(const nsAString& aFileName,
|
||||
(char*)fileName, (len + 1) * 2);
|
||||
index += AppendHeaderLength(&req[index], aFileSize);
|
||||
|
||||
SendObexData(req, ObexRequestCode::Put, index);
|
||||
// This is final put packet if file size equals to 0
|
||||
uint8_t opcode = (aFileSize > 0) ? ObexRequestCode::Put
|
||||
: ObexRequestCode::PutFinal;
|
||||
SendObexData(req, opcode, index);
|
||||
|
||||
delete [] fileName;
|
||||
delete [] req;
|
||||
|
@ -1161,7 +1161,10 @@ BluetoothOppManager::SendPutHeaderRequest(const nsAString& aFileName,
|
||||
(char*)fileName, (len + 1) * 2);
|
||||
index += AppendHeaderLength(&req[index], aFileSize);
|
||||
|
||||
SendObexData(req, ObexRequestCode::Put, index);
|
||||
// This is final put packet if file size equals to 0
|
||||
uint8_t opcode = (aFileSize > 0) ? ObexRequestCode::Put
|
||||
: ObexRequestCode::PutFinal;
|
||||
SendObexData(req, opcode, index);
|
||||
|
||||
delete [] fileName;
|
||||
delete [] req;
|
||||
|
@ -1140,7 +1140,10 @@ BluetoothOppManager::SendPutHeaderRequest(const nsAString& aFileName,
|
||||
(char*)fileName, (len + 1) * 2);
|
||||
index += AppendHeaderLength(&req[index], aFileSize);
|
||||
|
||||
SendObexData(req, ObexRequestCode::Put, index);
|
||||
// This is final put packet if file size equals to 0
|
||||
uint8_t opcode = (aFileSize > 0) ? ObexRequestCode::Put
|
||||
: ObexRequestCode::PutFinal;
|
||||
SendObexData(req, opcode, index);
|
||||
|
||||
delete [] fileName;
|
||||
delete [] req;
|
||||
|
@ -1161,7 +1161,10 @@ BluetoothOppManager::SendPutHeaderRequest(const nsAString& aFileName,
|
||||
(char*)fileName, (len + 1) * 2);
|
||||
index += AppendHeaderLength(&req[index], aFileSize);
|
||||
|
||||
SendObexData(req, ObexRequestCode::Put, index);
|
||||
// This is final put packet if file size equals to 0
|
||||
uint8_t opcode = (aFileSize > 0) ? ObexRequestCode::Put
|
||||
: ObexRequestCode::PutFinal;
|
||||
SendObexData(req, opcode, index);
|
||||
|
||||
delete [] fileName;
|
||||
delete [] req;
|
||||
|
Loading…
Reference in New Issue
Block a user