Attachment data bugfixes related to fDataSize
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5357 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -39,7 +39,7 @@ PortLink::PortLink(port_id port)
|
|||||||
fSendCode=0;
|
fSendCode=0;
|
||||||
fSendBuffer=new char[4096];
|
fSendBuffer=new char[4096];
|
||||||
fSendPosition=8;
|
fSendPosition=8;
|
||||||
fDataSize=(int32*)fSendBuffer+sizeof(int32);
|
fDataSize=(int32*)(fSendBuffer+sizeof(int32));
|
||||||
*fDataSize=0;
|
*fDataSize=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@ PortLink::PortLink( const PortLink &link )
|
|||||||
fSendCode = 0;
|
fSendCode = 0;
|
||||||
fSendBuffer=new char[4096];
|
fSendBuffer=new char[4096];
|
||||||
fSendPosition = 8;
|
fSendPosition = 8;
|
||||||
fDataSize=(int32*)fSendBuffer+sizeof(int32);
|
fDataSize=(int32*)(fSendBuffer+sizeof(int32));
|
||||||
*fDataSize=0;
|
*fDataSize=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user