ntdll: Fix add_access_ace
mike at codeweavers.com
Wed Jun 29 22:49:00 CDT 2005
James Hawkins wrote:
> These changes make the advapi32 tests pass as well.
> * Fix calculation of generic pointers.
> * Minor cleanups.
Thanks for the fixes. This makes Office 2003 work again for me.
> if ((DWORD)(pAceHeader + dwAceSize) > (DWORD)(pAcl + pAcl->AclSize))
> return STATUS_ALLOTTED_SPACE_EXCEEDED;
I think you might have missed one here. The above pointer arithmetic
seems like it will make the wrong calculation. Maybe something like the
following would work better:
if ( &((char*)pAceHeader)[dwAceSize] > &((char*)pAcl)[pAcl->AclSize] )
More information about the wine-devel