Eliminated a memory-allocation bug
Added a sensible workaround for BSession message code packaging git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4936 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b8b711a00d
commit
e956d70682
@ -11,7 +11,7 @@ class PortLink
|
||||
public:
|
||||
PortLink(port_id port);
|
||||
PortLink(const PortLink &link);
|
||||
virtual ~PortLink(void) { }
|
||||
virtual ~PortLink(void);
|
||||
|
||||
void SetOpCode(int32 code);
|
||||
|
||||
|
@ -28,6 +28,7 @@
|
||||
#define PORTMESSAGE_H_
|
||||
|
||||
#include <OS.h>
|
||||
#include <ServerProtocol.h>
|
||||
|
||||
class PortMessage
|
||||
{
|
||||
@ -67,12 +68,13 @@ public:
|
||||
}
|
||||
|
||||
void Rewind(void);
|
||||
|
||||
void BSessionWorkaround(void);
|
||||
private:
|
||||
int32 _code;
|
||||
uint8 *_buffer;
|
||||
ssize_t _buffersize;
|
||||
uint8 *_index;
|
||||
bool is_session_msg;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user