Fix QLocalFile file permission error on Windows (fixes nitroshare/nitroshare-desktop#107).

This commit is contained in:
Nathan Osman
2017-02-11 12:54:02 -08:00
parent 1972d82809
commit a9d1891f9a

View File

@@ -59,7 +59,7 @@ bool QLocalFilePrivate::setPermission()
ea.grfAccessMode = GRANT_ACCESS;
ea.grfInheritance = SUB_CONTAINERS_AND_OBJECTS_INHERIT;
ea.Trustee.TrusteeForm = TRUSTEE_IS_NAME;
ea.Trustee.ptstrName = L"CREATOR OWNER";
ea.Trustee.ptstrName = L"CURRENT_USER";
// Create a new ACL with a single access control entry
PACL pACL;