Details
-
Bug
-
Resolution: Fixed
-
Major
-
June 2017
-
74,911
Description
https://reactos.org/testman/compare.php?ids=53339,53341,53342,53344
The crash happens because SetEntriesInAclW fails for the CURRENT_USER trustee, causing new_acl to be null. This causes pGetExplicitEntriesFromAclW to also fail, making access2 NULL:
7158 access.Trustee.TrusteeForm = TRUSTEE_IS_NAME;
|
7159 access.Trustee.ptstrName = (LPWSTR)wszCurrentUser; |
7160 res = pSetEntriesInAclW(1, &access, old_acl, &new_acl);
|
7161 ok(res == ERROR_SUCCESS, "SetEntriesInAclW failed: %u\n", res); |
7162 ok(new_acl != NULL, "returned acl was NULL\n"); |
7163
|
7164 access2 = NULL;
|
7165 res = pGetExplicitEntriesFromAclW(new_acl, &count, &access2);
|
7166 ok(res == ERROR_SUCCESS, "GetExplicitEntriesFromAclW failed with error %d\n", GetLastError()); |
7167 ok(count == 2, "Expected count == 2, got %d\n", count); |
7168 ok(access2[0].grfAccessMode == GRANT_ACCESS, "Expected GRANT_ACCESS, got %d\n", access2[0].grfAccessMode); //<---- crash happens here |
Attachments
Issue Links
- relates to
-
CORE-13362 Syncing ReactOS with Wine Staging 2.9
- Untriaged