just some work, made sure to preserve app_server coding style
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14608 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
d317ba7488
commit
1334ab4721
@ -1323,7 +1323,9 @@ ServerApp::_DispatchMessage(int32 code, BPrivate::LinkReceiver &link)
|
|||||||
char *stringArray[numStrings];
|
char *stringArray[numStrings];
|
||||||
for (int32 i = 0; i < numStrings; i++) {
|
for (int32 i = 0; i < numStrings; i++) {
|
||||||
link.Read<int32>(&lengthArray[i]);
|
link.Read<int32>(&lengthArray[i]);
|
||||||
|
#ifdef DE_OLD_READ_STRING
|
||||||
stringArray[i] = new char[lengthArray[i]];
|
stringArray[i] = new char[lengthArray[i]];
|
||||||
|
#endif
|
||||||
link.ReadString(&stringArray[i]);
|
link.ReadString(&stringArray[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1351,9 +1353,15 @@ ServerApp::_DispatchMessage(int32 code, BPrivate::LinkReceiver &link)
|
|||||||
fLink.StartMessage(SERVER_FALSE);
|
fLink.StartMessage(SERVER_FALSE);
|
||||||
|
|
||||||
fLink.Flush();
|
fLink.Flush();
|
||||||
|
#ifndef DE_NEW_READ_STRING
|
||||||
for (int32 i = 0; i < numStrings; i++) {
|
for (int32 i = 0; i < numStrings; i++) {
|
||||||
delete[] stringArray[i];
|
#ifndef DE_OLD_READ_STRING
|
||||||
|
free(stringArray[i]);
|
||||||
|
#else
|
||||||
|
delete[] stringArray[i];
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case AS_GET_FONT_BOUNDING_BOX:
|
case AS_GET_FONT_BOUNDING_BOX:
|
||||||
|
Loading…
Reference in New Issue
Block a user