Alexandre Julliard : cabinet: Don' t try to copy data from the file if we don't even have a data buffer.
Alexandre Julliard
julliard at winehq.org
Thu Jan 15 08:50:55 CST 2009
Module: wine
Branch: master
Commit: 51c7fe5fc7695bda47a85da9d4ec119167790940
URL: http://source.winehq.org/git/wine.git/?a=commit;h=51c7fe5fc7695bda47a85da9d4ec119167790940
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Jan 15 12:03:08 2009 +0100
cabinet: Don't try to copy data from the file if we don't even have a data buffer.
---
dlls/cabinet/fci.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/cabinet/fci.c b/dlls/cabinet/fci.c
index 81175dc..4166598 100644
--- a/dlls/cabinet/fci.c
+++ b/dlls/cabinet/fci.c
@@ -1949,7 +1949,7 @@ static BOOL fci_flush_cabinet(
/* TODO error handling of err */
/* while not all CFFILE structures have been copied to the cabinet do */
- while(!FALSE) {
+ if (p_fci_internal->data_out) while(!FALSE) {
/* REUSE the variable read_result */
/* REUSE the buffer p_fci_internal->data_out AGAIN */
/* read a block from p_fci_internal->handleCFFILE2 */
@@ -2005,7 +2005,7 @@ static BOOL fci_flush_cabinet(
p_fci_internal->cFiles=0;
/* while not all CFDATA structures have been copied to the cabinet do */
- while(!FALSE) {
+ if (p_fci_internal->data_out) while(!FALSE) {
/* REUSE the variable read_result AGAIN */
/* REUSE the buffer p_fci_internal->data_out AGAIN */
/* read a block from p_fci_internal->handleCFDATA2 */
More information about the wine-cvs
mailing list