[PATCH 2/2] ntdll: Improve invalid parameter handling in NtAccessCheck. (try 3)
Qian Hong
qhong at codeweavers.com
Thu Feb 18 00:58:43 CST 2016
- Set ReturnLength to max( sizeof(PRIVILEGE_SET), FIELD_OFFSET(
PRIVILEGE_SET, Privilege ) + reply->privileges_len )
This match Windows' minimal ReturnLength, also works safe on Wine.
Signed-off-by: Qian Hong <qhong at codeweavers.com>
---
dlls/advapi32/tests/security.c | 19 -------------------
dlls/ntdll/sec.c | 27 ++++++++++++++++++++++++---
2 files changed, 24 insertions(+), 22 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-ntdll-Improve-invalid-parameter-handling-in-NtAccessCh.txt
Type: text/x-patch
Size: 6236 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20160218/ac816ea8/attachment-0001.bin>
More information about the wine-patches
mailing list