aboutsummaryrefslogtreecommitdiff
path: root/CPP/7zip/UI/FileManager/EnumFormatEtc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/UI/FileManager/EnumFormatEtc.cpp')
-rw-r--r--CPP/7zip/UI/FileManager/EnumFormatEtc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/CPP/7zip/UI/FileManager/EnumFormatEtc.cpp b/CPP/7zip/UI/FileManager/EnumFormatEtc.cpp
index fc2fd6c..9351993 100644
--- a/CPP/7zip/UI/FileManager/EnumFormatEtc.cpp
+++ b/CPP/7zip/UI/FileManager/EnumFormatEtc.cpp
@@ -32,6 +32,8 @@ static void DeepCopyFormatEtc(FORMATETC *dest, const FORMATETC *src)
32 if (src->ptd) 32 if (src->ptd)
33 { 33 {
34 dest->ptd = (DVTARGETDEVICE*)CoTaskMemAlloc(sizeof(DVTARGETDEVICE)); 34 dest->ptd = (DVTARGETDEVICE*)CoTaskMemAlloc(sizeof(DVTARGETDEVICE));
35 if (!dest->ptd)
36 throw 2026; // CNewException()
35 *(dest->ptd) = *(src->ptd); 37 *(dest->ptd) = *(src->ptd);
36 } 38 }
37} 39}