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:
parent
018e96bd74
commit
2e4c9e2113
@ -39,7 +39,7 @@ PortLink::PortLink(port_id port)
|
||||
fSendCode=0;
|
||||
fSendBuffer=new char[4096];
|
||||
fSendPosition=8;
|
||||
fDataSize=(int32*)fSendBuffer+sizeof(int32);
|
||||
fDataSize=(int32*)(fSendBuffer+sizeof(int32));
|
||||
*fDataSize=0;
|
||||
}
|
||||
|
||||
@ -53,7 +53,7 @@ PortLink::PortLink( const PortLink &link )
|
||||
fSendCode = 0;
|
||||
fSendBuffer=new char[4096];
|
||||
fSendPosition = 8;
|
||||
fDataSize=(int32*)fSendBuffer+sizeof(int32);
|
||||
fDataSize=(int32*)(fSendBuffer+sizeof(int32));
|
||||
*fDataSize=0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user