[Bug 19144] QueryContextAttributesW returns wrong return value
wine-bugs at winehq.org
wine-bugs at winehq.org
Wed Aug 5 15:22:15 CDT 2009
http://bugs.winehq.org/show_bug.cgi?id=19144
Juan Lang <juan_lang at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |juan_lang at yahoo.com
--- Comment #3 from Juan Lang <juan_lang at yahoo.com> 2009-08-05 15:22:15 ---
-2146893048 is 0x80090308, SEC_E_INVALID_TOKEN. I'm not sure where that's
coming from, as schannel.c never returns it.
Could you patch secur32 as you propose, and attach a +secur32 log with that
change? That'll at least help us identify if returning 1 is what the
application is expecting.
Or, the best thing you could do is to write some tests for
QueryContextAttributes. MSDN says QueryContextAttributes returns 0 on success,
nonzero on failure, whereas some sample code on MSDN checks the return value
with the FAILED macro. The FAILED macro only applies to HRESULTs, and any
non-negative value "passes" with an HRESULT. A test would show what native
secur32/schannel returns for SECPKG_ATTR_STREAM_SIZES, as well as what values
it puts into the returned SecPkgContext_StreamSizes structure.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list