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 14:45:24 +0000 (14:45 +0000)
commitefd73f72d8f34a40d6a1cd279fffa48dc13b6e5b
treed0cb063eee478da9413c46facec70a65c06aabf8
parentdb312b62f2237ea5fd5a98f04550b862c116a392
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