| 355 | |
| 356 | |
| 357 | void ErrorHandler::SysErrMsg() |
| 358 | { |
| 359 | #if !defined(SFX_MODULE) && !defined(SILENT) |
| 360 | wchar Msg[1024]; |
| 361 | if (!GetSysErrMsg(Msg,ASIZE(Msg))) |
| 362 | return; |
| 363 | #ifdef _WIN_ALL |
| 364 | wchar *CurMsg=Msg; |
| 365 | while (CurMsg!=NULL) // Print string with \r\n as several strings to multiple lines. |
| 366 | { |
| 367 | while (*CurMsg=='\r' || *CurMsg=='\n') |
| 368 | CurMsg++; |
| 369 | if (*CurMsg==0) |
| 370 | break; |
| 371 | wchar *EndMsg=wcschr(CurMsg,'\r'); |
| 372 | if (EndMsg==NULL) |
| 373 | EndMsg=wcschr(CurMsg,'\n'); |
| 374 | if (EndMsg!=NULL) |
| 375 | { |
| 376 | *EndMsg=0; |
| 377 | EndMsg++; |
| 378 | } |
| 379 | uiMsg(UIERROR_SYSERRMSG,CurMsg); |
| 380 | CurMsg=EndMsg; |
| 381 | } |
| 382 | #endif |
| 383 | |
| 384 | #if defined(_UNIX) || defined(_EMX) |
| 385 | uiMsg(UIERROR_SYSERRMSG,Msg); |
| 386 | #endif |
| 387 | |
| 388 | #endif |
| 389 | } |
| 390 | |
| 391 | |
| 392 | int ErrorHandler::GetSystemErrorCode() |
no test coverage detected