Marcus Meissner : wined3d: Initialize swapchain.

Alexandre Julliard julliard at winehq.org
Tue Jan 22 06:01:52 CST 2008


Module: wine
Branch: master
Commit: 755d806f1a4d9e3d7041dc60e97a0d93892ee4af
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=755d806f1a4d9e3d7041dc60e97a0d93892ee4af

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Tue Jan 22 09:27:00 2008 +0100

wined3d: Initialize swapchain.

---

 dlls/wined3d/device.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 4580c14..8d4dfd7 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -2003,7 +2003,7 @@ static void IWineD3DDeviceImpl_LoadLogo(IWineD3DDeviceImpl *This, const char *fi
 
 static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, WINED3DPRESENT_PARAMETERS* pPresentationParameters, D3DCB_CREATEADDITIONALSWAPCHAIN D3DCB_CreateAdditionalSwapChain) {
     IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *) iface;
-    IWineD3DSwapChainImpl *swapchain;
+    IWineD3DSwapChainImpl *swapchain = NULL;
     HRESULT hr;
     DWORD state;
 
@@ -2141,7 +2141,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, WINED3DPR
     }
     return WINED3D_OK;
 
-    err_out:
+err_out:
     HeapFree(GetProcessHeap(), 0, This->render_targets);
     HeapFree(GetProcessHeap(), 0, This->fbo_color_attachments);
     HeapFree(GetProcessHeap(), 0, This->draw_buffers);




More information about the wine-cvs mailing list