Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/rarfilesource.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'RFS.cpp')
-rw-r--r--RFS.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/RFS.cpp b/RFS.cpp
index b2271a9..cad52fa 100644
--- a/RFS.cpp
+++ b/RFS.cpp
@@ -443,6 +443,12 @@ int CRARFileSource::ScanArchive (wchar_t *archive_name, List<File> *file_list, i
file = new File ();
+ if (!file)
+ {
+ ErrorMsg (0, L"Out of memory.");
+ return FALSE;
+ }
+
file->media_type.SetType (&MEDIATYPE_Stream);
file->media_type.SetSubtype (&MEDIASUBTYPE_NULL);
file->filename = rh.fh.filename;