I tripped over this function while trying to run a game, so I thought I would have a go at it :-)
The implementation is very similar to what is done in `Local32Info16` already.
Regarding the place to put the function: I am not sure about the exact relationship between `kernel32` and `kernelbase`, but as most of the heap related functions are implemented in `kernelbase` I opted to add it to the latter. The tests reside in the `kernel32` directory though.
The tests are currently pretty basic as I was a bit hesitant to compare against hard coded sizes for reserved / committed memory (that could break if someone made changes to the heap implementation).
Also, I am not entirely sure about the semantics of the `cbMaxReserve` field. I opted to always set it to the same value as `cbReserved`, which seems *good enough™*.
Let me know if this needs improvement!
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/8237
--
v2: ole32/tests: Check calling a proxy after re-creating the STA.
ole32/tests: Add more tests with RPC from the wrong thread.
ole32/tests: Add an test with implicit MTA creation.
https://gitlab.winehq.org/wine/wine/-/merge_requests/8235
OSmesa is deprecated and has been removed from latest mesa releases, this replaces it with pbuffer rendering and flushing of the surface onto the bitmap at some specific sync points. The tests show that this is roughly how Windows seem to behave anyway, instead of rendering directly to the memory as OSmesa does.
--
v4: win32u: Remove now unnecessary context and pbuffer funcs.
win32u: Drop now unnecessary OSMesa dependency.
win32u: Use a pbuffer to implement GL on memory DCs.
opengl32/tests: Relax memory DC pixel format selection.
opengl32: Expose every pixel format on memory DCs.
winex11: Check XVisualInfo vs GLXFBConfig depth to avoid BadMatch.
winex11: Flag offscreen formats as bitmap compatible if possible.
winemac: Use opengl_funcs for glFlush.
winex11: Use opengl_funcs for glFlush / glFinish.
opengl32: Move glFlush / glFinish hooking from win32u.
https://gitlab.winehq.org/wine/wine/-/merge_requests/8210