[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mesa3d-dev
Subject:    [Mesa3d-dev] [Bug 7585]  New: Missing check in WMesaMakeCurrent
From:       bugzilla-daemon () annarchy ! freedesktop ! org
Date:       2006-07-21 13:45:39
Message-ID: 20060721134539.D9468130067 () annarchy ! freedesktop ! org
[Download RAW message or body]

Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=7585          
     
           Summary: Missing check in WMesaMakeCurrent
           Product: Mesa
           Version: 6.5
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Mesa core
        AssignedTo: mesa3d-dev@lists.sourceforge.net
        ReportedBy: mti@ashampoo.com


I think there is a missing check in mesa-6.5\src\mesa\drivers\windows\gdi\wmesa.c
following line 1316 in the function "void WMesaMakeCurrent(WMesaContext c, HDC
hdc)". 

At the beginning of the function it says:
GET_CURRENT_CONTEXT(ctx);
WMesaContext pwc = wmesa_context(ctx);
if (c == pwc && pwc->hDC == hdc) // << This line fails
    return;

but if pwc == 0, pwc->hDC throws an access violation.

You can verify this by doing:

void main(void)
{
    wglMakeCurrent(0, 0);
}          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic