Stefan Dösinger : wined3d: Make sure volumes have memory allocated.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Feb 21 06:01:04 CST 2007
Module: wine
Branch: master
Commit: 953940aada235dd06d449a18b88627b6968a7341
URL: http://source.winehq.org/git/wine.git/?a=commit;h=953940aada235dd06d449a18b88627b6968a7341
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Tue Feb 20 23:02:30 2007 +0100
wined3d: Make sure volumes have memory allocated.
---
dlls/wined3d/volume.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/volume.c b/dlls/wined3d/volume.c
index dc768e1..3fb3036 100644
--- a/dlls/wined3d/volume.c
+++ b/dlls/wined3d/volume.c
@@ -141,6 +141,10 @@ static HRESULT WINAPI IWineD3DVolumeImpl_LockBox(IWineD3DVolume *iface, WINED3DL
IWineD3DVolumeImpl *This = (IWineD3DVolumeImpl *)iface;
FIXME("(%p) : pBox=%p stub\n", This, pBox);
+ if(!This->resource.allocatedMemory) {
+ This->resource.allocatedMemory = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, This->resource.size);
+ }
+
/* fixme: should we really lock as such? */
TRACE("(%p) : box=%p, output pbox=%p, allMem=%p\n", This, pBox, pLockedVolume, This->resource.allocatedMemory);
More information about the wine-cvs
mailing list