diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-02-12 16:29:24 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-02-12 16:31:28 +0100 |
commit | 6842be374c0175bd19759f03138e7b9ff40cd083 (patch) | |
tree | ba80682fceabbd724ecc4779a840d1080ea50ecd /setup_native | |
parent | 5a68d2cbe26d70f8d392e27f2914d9132dcd124f (diff) |
It's better to use fclose on a not null handle
Change-Id: I609270e269a0905818d6a2b4f44cb9a034099346
Diffstat (limited to 'setup_native')
-rw-r--r-- | setup_native/source/win32/wintools/msidb/msidb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setup_native/source/win32/wintools/msidb/msidb.c b/setup_native/source/win32/wintools/msidb/msidb.c index c492ba290618..2ad33478a2f9 100644 --- a/setup_native/source/win32/wintools/msidb/msidb.c +++ b/setup_native/source/win32/wintools/msidb/msidb.c @@ -146,8 +146,8 @@ static BOOL msidbExportStorage(LPCWSTR dbfile, LPCWSTR wdir, LPWSTR storageName) if (fp != NULL) { fwrite(dataBuffer, 1, dataLen, fp); + fclose(fp); } - fclose(fp); free(storagePath); MsiCloseHandle(rec); @@ -262,8 +262,8 @@ static BOOL msidbExportStream(LPCWSTR dbfile, LPCWSTR wdir, LPCWSTR streamName) if (fp != NULL) { fwrite(dataBuffer, 1, dataLen, fp); + fclose(fp); } - fclose(fp); free(streamFileA); MsiCloseHandle(rec); |