mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-26 23:55:46 +00:00
Handle invalid filenames passed to CopyCaptureToRemote
This commit is contained in:
@@ -504,6 +504,13 @@ void StreamTransfer(StreamWriter *writer, StreamReader *reader, RENDERDOC_Progre
|
||||
{
|
||||
uint64_t totalSize = reader->GetSize();
|
||||
|
||||
if(totalSize == 0)
|
||||
{
|
||||
if(progress)
|
||||
progress(1.0f);
|
||||
return;
|
||||
}
|
||||
|
||||
// copy 1MB at a time
|
||||
const uint64_t StreamIOChunkSize = 1024 * 1024;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user