| 341 | |
| 342 | |
| 343 | void OutComment(const wchar *Comment,size_t Size) |
| 344 | { |
| 345 | if (IsCommentUnsafe(Comment,Size)) |
| 346 | return; |
| 347 | const size_t MaxOutSize=0x400; |
| 348 | for (size_t I=0;I<Size;I+=MaxOutSize) |
| 349 | { |
| 350 | wchar Msg[MaxOutSize+1]; |
| 351 | size_t CopySize=Min(MaxOutSize,Size-I); |
| 352 | wcsncpy(Msg,Comment+I,CopySize); |
| 353 | Msg[CopySize]=0; |
| 354 | mprintf(L"%s",Msg); |
| 355 | } |
| 356 | mprintf(L"\n"); |
| 357 | } |
no test coverage detected