[PATCH 6/6] advapi: add stub for GetNamedSecurityInfoExA()

Paul Bryan Roberts pbronline-wine at yahoo.co.uk
Tue Nov 4 02:04:14 CST 2008


This patch is one a series intended to fix Bug 14434 (WordPerfect Office 
2002:  Unable to Install).

The problem here is that the installer calls GetFileSecurity() on 
directories, not files while the Wine server only has support for this 
API call for files, not directories.

The solution seems simple - implement support for directories by cloning 
the support for files.  Provided, of course, that this is backed up by 
cloning the conformance tests.

The problem here is that while the cloning seemed to be necessary, it 
was not sufficient.  The application still refused to install.

A lot of single stepping in the debugger, revealed the application was 
calling GetProcAddress() to find out whether GetNamedSecurityInfoExA() 
is implemented and refusing to install because it wasn't.

I can't find any description of this routine in MSDN so I've kinda 
triangulated the prototype from other sources.  The  WPO 2002 installer 
pushed ten values onto the stack so the nine parameters I've got here 
might be wrong.

The return code is just the same as the stub for GetSecurityInfoExW(), 
which of course, doesn't prove anything.  I've not attempt to write a 
conformance test.  Is that required for empty stubs ?

The installer is seen to call the new stub.  The fact that the stub 
returns an error code does not to the installer actually getting on with 
the job.

If this patch and the others in this series are accepted, then Bug 14434 
is resolved.



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0006-advapi-add-stub-for-GetNamedSecurityInfoExA.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20081104/cbd307f8/attachment-0001.txt 


More information about the wine-patches mailing list