VirtualBox

Ignore:
Timestamp:
Feb 11, 2015 8:24:02 AM (10 years ago)
Author:
vboxsync
Message:

VBoxMPWddm: missing break in failure path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp

    r54006 r54133  
    27302730                vboxWddmAllocationDestroy(pAllocation);
    27312731            }
    2732         }
    2733     }
    2734 
    2735     pCreateAllocation->hResource = pResource;
    2736     if (pResource && Status != STATUS_SUCCESS)
    2737         vboxWddmResourceRelease(pResource);
     2732            break;
     2733        }
     2734    }
     2735
     2736    if (Status == STATUS_SUCCESS)
     2737    {
     2738        pCreateAllocation->hResource = pResource;
     2739    }
     2740    else
     2741    {
     2742        if (pResource)
     2743            vboxWddmResourceRelease(pResource);
     2744    }
    27382745
    27392746    LOGF(("LEAVE, status(0x%x), context(0x%x)", Status, hAdapter));
Note: See TracChangeset for help on using the changeset viewer.

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