Skip to content
Snippets Groups Projects
Commit 68d0e5a1 authored by Neha Gupta's avatar Neha Gupta Committed by Alan Coopersmith
Browse files

Fix handling of shmKey in XvMCGetDRInfo

If we store the result of shmget in a CARD32 (unsigned int), then
checking if it returned -1 for an error by using >= 0 doesn't work.

Also, once the request is flushed from the buffer (as XReply does),
there's no guarantee the values in it are still valid, so it's better
to rely on our local variable instead.

Fixes: xorg/lib/libxvmc#1



Signed-off-by: default avatarAlan Coopersmith <alan.coopersmith@oracle.com>
parent 48ca7866
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment