Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

FreeSid() Called Prematurely #470

Open
druske opened this issue Jul 28, 2020 · 0 comments
Open

FreeSid() Called Prematurely #470

druske opened this issue Jul 28, 2020 · 0 comments

Comments

@druske
Copy link

druske commented Jul 28, 2020

Calling FreeSid(everoneSid) before calling SetEntriesInAcl() can cause the latter to return ERROR_INVALID_PARAMETER. FreeSid(everyoneSid) should instead be called if the return from DeriveAppContainerSidFromAppContainerName() is not successful (in which case we throw out of the function), and after the call to SetEntriesInAcl().

While the existing code seems to work fine on a desktop Windows 10 system, this issue manifests on Windows 10 IoT Core.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant