OSDN Git Service

mapi/glapi: Never use a generic no-op entry-point on Windows.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 2 Feb 2012 10:44:10 +0000 (10:44 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 2 Feb 2012 15:43:10 +0000 (15:43 +0000)
commit5ac4c8cf53de2f0ed228949a724f40eb108cfd00
tree8edcbc45167ed23c5a7952cfe443482983680ee8
parent7f5d3f7ed2ac42f00e4f848dd79b6223d95d7877
mapi/glapi: Never use a generic no-op entry-point on Windows.

When GLAPIENTRY is __stdcall (ie Windows), the stack is popped by the
callee making the number/type of arguments significant, therefore
using a generic no-op causes stack corruption for many entry-points.

NOTE: This is a candidate for the 8.0 branch.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mapi/glapi/glapi_nop.c