mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Fixed multi-sourced symbol server conflict
This commit is contained in:
parent
3b9558a508
commit
8376355098
3 changed files with 4 additions and 7 deletions
|
@ -2727,11 +2727,8 @@ BFP_EXPORT BfpFile* BFP_CALLTYPE BfpFile_Create(const char* path, BfpFileCreateK
|
|||
creationDisposition = CREATE_ALWAYS;
|
||||
}
|
||||
else if (createKind == BfpFileCreateKind_CreateIfNotExists)
|
||||
{
|
||||
if ((createFlags & BfpFileCreateFlag_Append) != 0)
|
||||
creationDisposition = CREATE_NEW;
|
||||
else
|
||||
creationDisposition = TRUNCATE_EXISTING;
|
||||
{
|
||||
creationDisposition = CREATE_NEW;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -43,7 +43,7 @@ static size_t WriteMemoryCallback(void* contents, size_t size, size_t nmemb, voi
|
|||
if (!netRequest->mOutFile.IsOpen())
|
||||
{
|
||||
RecursiveCreateDirectory(GetFileDir(netRequest->mOutPath));
|
||||
if (!netRequest->mOutFile.Open(netRequest->mOutTempPath, "wb"))
|
||||
if (!netRequest->mOutFile.Open(netRequest->mOutTempPath, BfpFileCreateKind_CreateAlways, BfpFileCreateFlag_Write))
|
||||
{
|
||||
netRequest->Fail(StrFormat("Failed to create file '%s'", netRequest->mOutTempPath.c_str()));
|
||||
return 0;
|
||||
|
|
|
@ -29,7 +29,7 @@ public:
|
|||
String mURL;
|
||||
String mOutPath;
|
||||
String mOutTempPath;
|
||||
FileStream mOutFile;
|
||||
SysFileStream mOutFile;
|
||||
#ifdef BF_CURL
|
||||
CURL* mCURL;
|
||||
CURLM* mCURLMulti;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue