diff options
Diffstat (limited to 'src/engine/plan.cpp')
| -rw-r--r-- | src/engine/plan.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/engine/plan.cpp b/src/engine/plan.cpp index a37dcc89..f7434216 100644 --- a/src/engine/plan.cpp +++ b/src/engine/plan.cpp | |||
| @@ -1839,15 +1839,22 @@ static void ResetPlannedPayloadsState( | |||
| 1839 | { | 1839 | { |
| 1840 | BURN_PAYLOAD* pPayload = pPayloads->rgPayloads + i; | 1840 | BURN_PAYLOAD* pPayload = pPayloads->rgPayloads + i; |
| 1841 | 1841 | ||
| 1842 | pPayload->cRemainingInstances = 0; | ||
| 1842 | pPayload->state = BURN_PAYLOAD_STATE_NONE; | 1843 | pPayload->state = BURN_PAYLOAD_STATE_NONE; |
| 1843 | ReleaseNullStr(pPayload->sczLocalFilePath); | 1844 | ReleaseNullStr(pPayload->sczLocalFilePath); |
| 1844 | } | 1845 | } |
| 1845 | } | 1846 | } |
| 1846 | 1847 | ||
| 1847 | static void ResetPlannedPayloadGroupState( | 1848 | static void ResetPlannedPayloadGroupState( |
| 1848 | __in BURN_PAYLOAD_GROUP* /*pPayloadGroup*/ | 1849 | __in BURN_PAYLOAD_GROUP* pPayloadGroup |
| 1849 | ) | 1850 | ) |
| 1850 | { | 1851 | { |
| 1852 | for (DWORD i = 0; i < pPayloadGroup->cItems; ++i) | ||
| 1853 | { | ||
| 1854 | BURN_PAYLOAD_GROUP_ITEM* pItem = pPayloadGroup->rgItems + i; | ||
| 1855 | |||
| 1856 | pItem->fCached = FALSE; | ||
| 1857 | } | ||
| 1851 | } | 1858 | } |
| 1852 | 1859 | ||
| 1853 | static void ResetPlannedPackageState( | 1860 | static void ResetPlannedPackageState( |
| @@ -2223,9 +2230,12 @@ static HRESULT ProcessPayloadGroup( | |||
| 2223 | { | 2230 | { |
| 2224 | HRESULT hr = S_OK; | 2231 | HRESULT hr = S_OK; |
| 2225 | 2232 | ||
| 2226 | for (DWORD i = 0; i < pPayloadGroup->cPayloads; ++i) | 2233 | for (DWORD i = 0; i < pPayloadGroup->cItems; ++i) |
| 2227 | { | 2234 | { |
| 2228 | BURN_PAYLOAD* pPayload = pPayloadGroup->rgpPayloads[i]; | 2235 | BURN_PAYLOAD_GROUP_ITEM* pItem = pPayloadGroup->rgItems + i; |
| 2236 | BURN_PAYLOAD* pPayload = pItem->pPayload; | ||
| 2237 | |||
| 2238 | pPayload->cRemainingInstances += 1; | ||
| 2229 | 2239 | ||
| 2230 | if (pPayload->pContainer && !pPayload->pContainer->fPlanned) | 2240 | if (pPayload->pContainer && !pPayload->pContainer->fPlanned) |
| 2231 | { | 2241 | { |
