http://bugs.winehq.org/show_bug.cgi?id=18758
Summary: LsaGetLogonSessionData unconditionally returns STATUS_SUCCESS Product: Wine Version: 1.1.22 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: secur32 AssignedTo: wine-bugs@winehq.org ReportedBy: winesku@googlemail.com CC: kai.blin@gmail.com
LsaGetLogonSessionData unconditionally returns STATUS_SUCCESS. Applications that use LsaGetLogonSessionData normally rely on a different behaviour: If LsaGetLogonSessionData returns STATUS_SUCCESS, it allocates a buffer for the caller. Now if a client app relies on a buffer being allocated and reads from this buffer, it will surely crash. Therefore, LsaGetLogonSessionData should return an error code, such as STATUS_NOT_IMPLEMENTED, as long as it is only a stub, so client apps that do proper error handling do not get tempted to touch the buffer that the current implementation in WINE will not allocate for them.