mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-02 19:46:06 -04:00
Add #ifdef Q_OS_WIN guard.
This commit is contained in:
parent
d0ebaff7b4
commit
153dc620c8
1 changed files with 2 additions and 0 deletions
|
@ -256,6 +256,7 @@ bool createWindowsDACL()
|
||||||
{
|
{
|
||||||
bool bSuccess = false;
|
bool bSuccess = false;
|
||||||
|
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
// Access control list
|
// Access control list
|
||||||
PACL pACL = nullptr;
|
PACL pACL = nullptr;
|
||||||
DWORD cbACL = 0;
|
DWORD cbACL = 0;
|
||||||
|
@ -341,6 +342,7 @@ Cleanup:
|
||||||
if (pACL != nullptr) {
|
if (pACL != nullptr) {
|
||||||
HeapFree(GetProcessHeap(), 0, pACL);
|
HeapFree(GetProcessHeap(), 0, pACL);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return bSuccess;
|
return bSuccess;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue