MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / SysErrMsg

Method SysErrMsg

Libraries/unrar/errhnd.cpp:357–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355
356
357void 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
392int ErrorHandler::GetSystemErrorCode()

Callers 9

ThreadCreateFunction · 0.80
ExtractHardlinkFunction · 0.80
ExtractACL20Function · 0.80
ExtractACLFunction · 0.80
SecHideDataFunction · 0.80
ExtractUnixOwner20Function · 0.80
CreateReparsePointFunction · 0.80
ScanErrorMethod · 0.80
ExtrCreateDirMethod · 0.80

Calls 1

uiMsgFunction · 0.85

Tested by

no test coverage detected