From ac796d81e76ae043545129753e59463ef2c82e93 Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Mon, 11 Feb 2008 20:48:58 +0000 Subject: [PATCH] cabinet: Assign to structs instead of using memcpy. --- dlls/cabinet/fci.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/cabinet/fci.c b/dlls/cabinet/fci.c index a33f2e3933c..ea745a63c67 100644 --- a/dlls/cabinet/fci.c +++ b/dlls/cabinet/fci.c @@ -1331,7 +1331,7 @@ static BOOL fci_flush_folder( ) ) { /* save CCAB */ - memcpy(&(p_fci_internal->oldCCAB), p_fci_internal->pccab, sizeof(CCAB)); + p_fci_internal->oldCCAB = *p_fci_internal->pccab; /* increment cabinet index */ ++(p_fci_internal->pccab->iCab); /* get name of next cabinet */ @@ -2244,7 +2244,7 @@ static BOOL fci_flush_cabinet( CB_MAX_CABINET_NAME + CB_MAX_DISK_NAME )) { /* save CCAB */ - memcpy(&(p_fci_internal->oldCCAB), p_fci_internal->pccab, sizeof(CCAB)); + p_fci_internal->oldCCAB = *p_fci_internal->pccab; /* increment cabinet index */ ++(p_fci_internal->pccab->iCab); /* get name of next cabinet */ @@ -2477,7 +2477,7 @@ BOOL __cdecl FCIAddFile( ) ) { /* save CCAB */ - memcpy(&(p_fci_internal->oldCCAB), p_fci_internal->pccab, sizeof(CCAB)); + p_fci_internal->oldCCAB = *p_fci_internal->pccab; /* increment cabinet index */ ++(p_fci_internal->pccab->iCab); /* get name of next cabinet */ @@ -2644,7 +2644,7 @@ BOOL __cdecl FCIAddFile( ) ) { /* save CCAB */ - memcpy(&(p_fci_internal->oldCCAB), p_fci_internal->pccab, sizeof(CCAB)); + p_fci_internal->oldCCAB = *p_fci_internal->pccab; /* increment cabinet index */ ++(p_fci_internal->pccab->iCab); /* get name of next cabinet */