WineD3D: Allocate the resources with VirtualAlloc

Alexandre Julliard julliard at
Wed Apr 19 04:15:28 CDT 2006

Stefan Dösinger <stefan at> writes:

> This patch allocates the memory of Surfaces, Indexbuffers and Vertexbuffers 
> with VirtualAlloc instead of HeapAlloc. This will be needed for GetDC to 
> work. It is done for Index- and Vertexbuffers too because they are also 
> managed by the WineD3D resource manager.

I'm not sure I agree with that. Are you planning to trap accesses like
the DIB code does?  That sucks pretty badly in the DIB code, I don't
think we want to do any more of that.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list