mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2025-06-03 00:00:20 +00:00
[winpr,file] handle FILE_ATTRIBUTE_NORMAL in SetFileAttributesA
This commit is contained in:
parent
52ff1cef93
commit
78a8dbfcbb
@ -612,11 +612,11 @@ BOOL SetFileAttributesA(LPCSTR lpFileName, DWORD dwFileAttributes)
|
|||||||
{
|
{
|
||||||
BOOL rc = FALSE;
|
BOOL rc = FALSE;
|
||||||
#ifdef WINPR_HAVE_FCNTL_H
|
#ifdef WINPR_HAVE_FCNTL_H
|
||||||
if (dwFileAttributes & ~FILE_ATTRIBUTE_READONLY)
|
const uint32_t mask = ~(FILE_ATTRIBUTE_READONLY | FILE_ATTRIBUTE_NORMAL);
|
||||||
|
if (dwFileAttributes & mask)
|
||||||
{
|
{
|
||||||
char buffer[8192] = { 0 };
|
char buffer[8192] = { 0 };
|
||||||
const char* flags =
|
const char* flags = flagsToStr(buffer, sizeof(buffer), dwFileAttributes & mask);
|
||||||
flagsToStr(buffer, sizeof(buffer), dwFileAttributes & ~FILE_ATTRIBUTE_READONLY);
|
|
||||||
WLog_WARN(TAG, "Unsupported flags %s, ignoring!", flags);
|
WLog_WARN(TAG, "Unsupported flags %s, ignoring!", flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user