VirtualBox

Ignore:
Timestamp:
Jun 19, 2013 2:21:36 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
86551
Message:

wine: uninit fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/d3d9/device.c

    r46521 r46661  
    288288    unsigned i;
    289289    LONG refs = device->refcount;
     290    LONG wined3d_refs;
    290291    device->in_destruction = TRUE;
    291292
     
    311312    wined3d_device_release_focus_window(device->wined3d_device);
    312313# endif
    313     wined3d_device_decref(device->wined3d_device);
     314    wined3d_refs = wined3d_device_decref(device->wined3d_device);
    314315    wined3d_mutex_unlock();
    315316
     
    318319    HeapFree(GetProcessHeap(), 0, device);
    319320
    320     return refs - 1;
     321    return wined3d_refs;
    321322}
    322323#endif
     
    39123913{
    39133914    struct d3d9_device *device = impl_from_IDirect3DDevice9Ex(iface);
     3915    struct wined3d_device *wined3d_device = device->wined3d_device;
    39143916    LONG wined3d_refs;
    39153917    if (device->refcount != 1)
     
    39213923    {
    39223924        ERR("unexpected wined3dRefs %d, destroying in anyway", wined3d_refs);
    3923         while (wined3d_device_decref(device->wined3d_device)) {}
     3925        while (wined3d_device_decref(wined3d_device)) {}
    39243926    }
    39253927    return D3D_OK;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette