https://git.reactos.org/?p=reactos.git;a=commitdiff;h=43c93faa1626ea337bd9a…
commit 43c93faa1626ea337bd9a6b3dbc6e39684bc4cc5
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Sun Sep 1 16:23:17 2019 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Sun Sep 1 16:26:01 2019 +0200
Revert "[CABMAN] Fix a problem with creating temp files on some Windows
system"
This reverts commit bcb0d7c6c9f5577a64e5abdc3c1cedd95eeff6a3.
---
sdk/tools/cabman/CCFDATAStorage.cxx | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/sdk/tools/cabman/CCFDATAStorage.cxx b/sdk/tools/cabman/CCFDATAStorage.cxx
index b02551fbe76..1d7ef5e64f4 100644
--- a/sdk/tools/cabman/CCFDATAStorage.cxx
+++ b/sdk/tools/cabman/CCFDATAStorage.cxx
@@ -56,12 +56,7 @@ CCFDATAStorage::~CCFDATAStorage()
ULONG CCFDATAStorage::Create()
{
if ((FileHandle = tmpfile()) == NULL)
- {
- /* Workaround for breakage on some Windows system */
- FileHandle = fopen(tmpnam(NULL) + 1, "wb");
- if (FileHandle == NULL)
- return CAB_STATUS_CANNOT_CREATE;
- }
+ return CAB_STATUS_CANNOT_CREATE;
return CAB_STATUS_SUCCESS;
}