Changeset 25468
- Timestamp:
- 05/12/08 09:27:56 (6 months ago)
- Location:
- haiku/trunk
- Files:
-
- 2 removed
- 3 modified
-
headers/private/app/PortQueue.h (deleted)
-
src/kits/app/Application.cpp (modified) (4 diffs)
-
src/kits/app/LinkReceiver.cpp (modified) (5 diffs)
-
src/kits/app/LinkSender.cpp (modified) (2 diffs)
-
src/kits/app/PortQueue.cpp (deleted)
Legend:
- Unmodified
- Added
- Removed
-
haiku/trunk/src/kits/app/Application.cpp
r25091 r25468 209 209 if (data->FindInt64("_pulse", &pulseRate) == B_OK) 210 210 SetPulseRate(pulseRate); 211 212 211 } 213 212 … … 862 861 BApplication::GetAppInfo(app_info *info) const 863 862 { 863 if (be_app == NULL || be_roster == NULL) 864 return B_NO_INIT; 864 865 return be_roster->GetRunningAppInfo(be_app->Team(), info); 865 866 } … … 880 881 881 882 // App is already running. Get its entry ref with 882 // Get RunningAppInfo()883 // GetAppInfo() 883 884 app_info appInfo; 884 if (be_app && be_ roster->GetRunningAppInfo(be_app->Team(),&appInfo) == B_OK) {885 if (be_app && be_app->GetAppInfo(&appInfo) == B_OK) { 885 886 ref = appInfo.ref; 886 887 found = true; … … 890 891 } 891 892 892 if (found) { 893 BFile file(&ref, B_READ_ONLY); 894 if (file.InitCheck() == B_OK) { 895 BResources *resources = new BResources(); 896 if (resources->SetTo(&file, false) < B_OK) 897 delete resources; 898 else 899 sAppResources = resources; 893 if (!found) 894 return NULL; 895 896 BFile file(&ref, B_READ_ONLY); 897 if (file.InitCheck() == B_OK) { 898 sAppResources = new (nothrow) BResources(&file, false); 899 if (sAppResources != NULL 900 && sAppResources->InitCheck() != B_OK) { 901 delete sAppResources; 902 sAppResources = NULL; 900 903 } 901 904 } -
haiku/trunk/src/kits/app/LinkReceiver.cpp
r22115 r25468 59 59 LinkReceiver::GetNextMessage(int32 &code, bigtime_t timeout) 60 60 { 61 int32 remaining;62 63 61 fReadError = B_OK; 64 62 65 remaining = fDataSize - (fRecvStart + fReplySize);63 int32 remaining = fDataSize - (fRecvStart + fReplySize); 66 64 STRACE(("info: LinkReceiver GetNextReply() reports %ld bytes remaining in buffer.\n", remaining)); 67 65 … … 278 276 { 279 277 int32 length = 0; 280 status_t status; 281 282 status = Read<int32>(&length); 278 status_t status = Read<int32>(&length); 279 283 280 if (status < B_OK) 284 281 return status; 285 282 286 283 char *string; 287 288 284 if (length < 0) { 289 285 status = B_ERROR; … … 310 306 if (_length) 311 307 *_length = length; 308 312 309 *_string = string; 313 310 … … 325 322 { 326 323 int32 length = 0; 327 status_t status; 328 329 status = Read<int32>(&length); 324 status_t status = Read<int32>(&length); 325 330 326 if (status < B_OK) 331 327 return status; … … 371 367 { 372 368 int32 length = 0; 373 status_t status; 374 375 status = Read<int32>(&length); 369 status_t status = Read<int32>(&length); 370 376 371 if (status < B_OK) 377 372 return status; -
haiku/trunk/src/kits/app/LinkSender.cpp
r14799 r25468 196 196 else if (newSize > kInitialBufferSize) 197 197 newSize = (newSize + B_PAGE_SIZE - 1) & ~(B_PAGE_SIZE - 1); 198 199 char *buffer = NULL; 198 200 199 if (newSize == fBufferSize) { 201 200 // keep existing buffer … … 206 205 207 206 // create new larger buffer 208 buffer = (char *)malloc(newSize);207 char *buffer = (char *)malloc(newSize); 209 208 if (buffer == NULL) 210 209 return B_NO_MEMORY;
