mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-17 07:44:09 +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
|
@ -2728,10 +2728,7 @@ BFP_EXPORT BfpFile* BFP_CALLTYPE BfpFile_Create(const char* path, BfpFileCreateK
|
||||||
}
|
}
|
||||||
else if (createKind == BfpFileCreateKind_CreateIfNotExists)
|
else if (createKind == BfpFileCreateKind_CreateIfNotExists)
|
||||||
{
|
{
|
||||||
if ((createFlags & BfpFileCreateFlag_Append) != 0)
|
|
||||||
creationDisposition = CREATE_NEW;
|
creationDisposition = CREATE_NEW;
|
||||||
else
|
|
||||||
creationDisposition = TRUNCATE_EXISTING;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -43,7 +43,7 @@ static size_t WriteMemoryCallback(void* contents, size_t size, size_t nmemb, voi
|
||||||
if (!netRequest->mOutFile.IsOpen())
|
if (!netRequest->mOutFile.IsOpen())
|
||||||
{
|
{
|
||||||
RecursiveCreateDirectory(GetFileDir(netRequest->mOutPath));
|
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()));
|
netRequest->Fail(StrFormat("Failed to create file '%s'", netRequest->mOutTempPath.c_str()));
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -29,7 +29,7 @@ public:
|
||||||
String mURL;
|
String mURL;
|
||||||
String mOutPath;
|
String mOutPath;
|
||||||
String mOutTempPath;
|
String mOutTempPath;
|
||||||
FileStream mOutFile;
|
SysFileStream mOutFile;
|
||||||
#ifdef BF_CURL
|
#ifdef BF_CURL
|
||||||
CURL* mCURL;
|
CURL* mCURL;
|
||||||
CURLM* mCURLMulti;
|
CURLM* mCURLMulti;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue