Download to memory
| 286 | { |
| 287 | // create thread failed - fallback to direct processing |
| 288 | DownloadToFileThread(context); |
| 289 | } |
| 290 | else |
| 291 | { |
| 292 | // handle no longer required |
| 293 | CloseHandle(handle); |
| 294 | } |
| 295 | } |
| 296 | |
| 297 | // Download to memory |
| 298 | static void DownloadToMemOverlapped(DownloadToMemContext* context) |
| 299 | { |
| 300 | DWORD threadId; |
| 301 | HANDLE handle = CreateThread(nullptr, 0, DownloadToMemThread, context, 0, &threadId); |
| 302 | if (!handle) |
| 303 | { |
| 304 | // create thread failed - fallback to direct processing |
| 305 | DownloadToMemThread(context); |
no test coverage detected