mirror of
https://github.com/thunderbrewhq/bc.git
synced 2025-12-12 18:12:29 +00:00
13 lines
No EOL
396 B
C++
13 lines
No EOL
396 B
C++
#include "bc/os/file/SetFileAttributes.hpp"
|
|
#include "bc/file/SetAttributes.hpp"
|
|
#include "bc/os/file/Defines.hpp"
|
|
|
|
int32_t OsSetFileAttributes(const char* fileName, uint32_t attributes) {
|
|
if (!fileName) {
|
|
// SetLastError(0x57);
|
|
OS_FILE_SET_LAST_ERROR(OS_FILE_ERROR_INVALID_PARAMETER);
|
|
return 0;
|
|
}
|
|
|
|
return Blizzard::File::SetAttributes(fileName, attributes);
|
|
} |