Implement GetFileSecurityW

Troy Rollo wine at troy.rollo.name
Thu Mar 3 18:48:31 CST 2005


The existing stub for GetFileSecurityW returns TRUE even though the 
SECURITY_DESCRIPTOR is not touched. This can cause a SEGV later when the 
"returned" SECURITY_DESCRIPTOR is used. The attached patch adds an 
implementation for GetFileSecurityW that always provides a 
SECURITY_DESCRIPTOR indicating an owner and group of "Everybody" and all 
permissions being available to "Everybody".

ChangeLog:
 Make GetFileSecurityW return a standard SECURITY_DESCRIPTOR
 instead of an uninitialised (and invalid) one.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getfsec.diff
Type: text/x-diff
Size: 3492 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050304/57a63e96/getfsec.bin


More information about the wine-patches mailing list