audin/server: fix a crash.

This commit is contained in:
Vic Lee 2014-04-21 18:13:12 +08:00
parent 2fc7f9c485
commit 8317fb9107

View File

@ -405,7 +405,7 @@ static BOOL audin_server_open(audin_server_context* context)
audin->SessionId = WTS_CURRENT_SESSION;
if (WTSQuerySessionInformationA(context->vcm, WTS_CURRENT_SESSION,
WTSSessionId, (LPSTR*) pSessionId, &BytesReturned))
WTSSessionId, (LPSTR*) &pSessionId, &BytesReturned))
{
audin->SessionId = (DWORD) *pSessionId;
WTSFreeMemory(pSessionId);