Kaydet (Commit) 6842be37 authored tarafından Julien Nabet's avatar Julien Nabet

It's better to use fclose on a not null handle

Change-Id: I609270e269a0905818d6a2b4f44cb9a034099346
üst 5a68d2cb
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment