mirror of
https://github.com/reactos/reactos.git
synced 2025-05-21 10:05:35 +00:00
Revert "[CABMAN] Fix a problem with creating temp files on some Windows system"
This reverts commit bcb0d7c6c9
.
This commit is contained in:
parent
41250d1028
commit
43c93faa16
1 changed files with 1 additions and 6 deletions
|
@ -56,12 +56,7 @@ CCFDATAStorage::~CCFDATAStorage()
|
||||||
ULONG CCFDATAStorage::Create()
|
ULONG CCFDATAStorage::Create()
|
||||||
{
|
{
|
||||||
if ((FileHandle = tmpfile()) == NULL)
|
if ((FileHandle = tmpfile()) == NULL)
|
||||||
{
|
return CAB_STATUS_CANNOT_CREATE;
|
||||||
/* Workaround for breakage on some Windows system */
|
|
||||||
FileHandle = fopen(tmpnam(NULL) + 1, "wb");
|
|
||||||
if (FileHandle == NULL)
|
|
||||||
return CAB_STATUS_CANNOT_CREATE;
|
|
||||||
}
|
|
||||||
|
|
||||||
return CAB_STATUS_SUCCESS;
|
return CAB_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue