aboutsummaryrefslogtreecommitdiff
path: root/CPP/7zip/Archive/Wim/WimHandlerOut.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/Archive/Wim/WimHandlerOut.cpp')
-rw-r--r--CPP/7zip/Archive/Wim/WimHandlerOut.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/CPP/7zip/Archive/Wim/WimHandlerOut.cpp b/CPP/7zip/Archive/Wim/WimHandlerOut.cpp
index 3b2cb31..0fd7d23 100644
--- a/CPP/7zip/Archive/Wim/WimHandlerOut.cpp
+++ b/CPP/7zip/Archive/Wim/WimHandlerOut.cpp
@@ -177,7 +177,12 @@ struct CUpdateItem
177 int InArcIndex; // >= 0, if we use OLD Data 177 int InArcIndex; // >= 0, if we use OLD Data
178 // -1, if we use NEW Data 178 // -1, if we use NEW Data
179 179
180 CUpdateItem(): MetaIndex(-1), AltStreamIndex(-1), InArcIndex(-1) {} 180 void Construct()
181 {
182 MetaIndex = -1;
183 AltStreamIndex = -1;
184 InArcIndex = -1;
185 }
181}; 186};
182 187
183 188
@@ -894,6 +899,7 @@ Z7_COM7F_IMF(CHandler::UpdateItems(ISequentialOutStream *outSeqStream, UInt32 nu
894 for (i = 0; i < numItems; i++) 899 for (i = 0; i < numItems; i++)
895 { 900 {
896 CUpdateItem ui; 901 CUpdateItem ui;
902 ui.Construct();
897 UInt32 indexInArchive; 903 UInt32 indexInArchive;
898 Int32 newData, newProps; 904 Int32 newData, newProps;
899 RINOK(callback->GetUpdateItemInfo(i, &newData, &newProps, &indexInArchive)) 905 RINOK(callback->GetUpdateItemInfo(i, &newData, &newProps, &indexInArchive))