1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Added bitcode emission, additional logging

This commit is contained in:
Brian Fiete 2019-10-29 04:56:42 -07:00
parent 1e8c633a36
commit 43b69023f6
14 changed files with 74 additions and 31 deletions

View file

@ -2435,7 +2435,8 @@ BFP_EXPORT void BFP_CALLTYPE BfpDirectory_Create(const char* path, BfpFileResult
UTF16String wPath = UTF8Decode(path);
if (!::CreateDirectoryW(wPath.c_str(), NULL))
{
switch (::GetLastError())
int lastError = ::GetLastError();
switch (lastError)
{
case ERROR_ALREADY_EXISTS:
OUTRESULT(BfpFileResult_AlreadyExists);