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.
http://bugs.winehq.org/show_bug.cgi?id=18758
Kai Blin kai.blin@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW AssignedTo|wine-bugs@winehq.org |kai.blin@gmail.com Ever Confirmed|0 |1
--- Comment #1 from Kai Blin kai.blin@gmail.com 2009-06-03 05:48:44 --- Working on it.
http://bugs.winehq.org/show_bug.cgi?id=18758
--- Comment #2 from Kai Blin kai.blin@gmail.com 2009-06-03 06:00:48 --- Patch sent.
http://bugs.winehq.org/show_bug.cgi?id=18758
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #3 from Juan Lang juan_lang@yahoo.com 2009-06-03 10:59:59 --- Patch committed today.
http://bugs.winehq.org/show_bug.cgi?id=18758
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org 2009-06-05 12:47:44 --- Closing bugs fixed in 1.1.23.