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:
@@ -11,7 +11,7 @@ class PortLink
|
|||||||
public:
|
public:
|
||||||
PortLink(port_id port);
|
PortLink(port_id port);
|
||||||
PortLink(const PortLink &link);
|
PortLink(const PortLink &link);
|
||||||
virtual ~PortLink(void) { }
|
virtual ~PortLink(void);
|
||||||
|
|
||||||
void SetOpCode(int32 code);
|
void SetOpCode(int32 code);
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
#define PORTMESSAGE_H_
|
#define PORTMESSAGE_H_
|
||||||
|
|
||||||
#include <OS.h>
|
#include <OS.h>
|
||||||
|
#include <ServerProtocol.h>
|
||||||
|
|
||||||
class PortMessage
|
class PortMessage
|
||||||
{
|
{
|
||||||
@@ -67,12 +68,13 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Rewind(void);
|
void Rewind(void);
|
||||||
|
void BSessionWorkaround(void);
|
||||||
private:
|
private:
|
||||||
int32 _code;
|
int32 _code;
|
||||||
uint8 *_buffer;
|
uint8 *_buffer;
|
||||||
ssize_t _buffersize;
|
ssize_t _buffersize;
|
||||||
uint8 *_index;
|
uint8 *_index;
|
||||||
|
bool is_session_msg;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user