bool WriteToBuffer(const BYTE *src, int len, char *&buffer, int& offset, int& size, bool &fixedBuffer)
{
+ if (!src) return true;
if (offset + len)
{
if (!ResizeBuffer(buffer, size, offset, size + len, fixedBuffer))
bool WriteToBuffer(PCWSTR str, char *&buffer, int& offset, int& size, bool &fixedBuffer)
{
+ if (!str) return true;
int byteCount = (PAL_wcslen(str) + 1) * sizeof(*str);
if (offset + byteCount)
bool WriteToBuffer(const char *str, char *&buffer, int& offset, int& size, bool &fixedBuffer)
{
+ if (!str) return true;
int len = strlen(str) + 1;
if (offset + len)
{
if __name__ == '__main__':
return_code = main(sys.argv[1:])
- sys.exit(return_code)
\ No newline at end of file
+ sys.exit(return_code)