VirtualBox

Changeset 54810 in vbox


Ignore:
Timestamp:
Mar 17, 2015 12:15:29 PM (10 years ago)
Author:
vboxsync
Message:

vboxDrvCfgInfQueryFirstPnPId: Initialize return value so we don't pass uninitialized string pointers to the non-standard-log-rel-crap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/win/cfg/VBoxDrvCfg.cpp

    r53038 r54810  
    349349static HRESULT vboxDrvCfgInfQueryFirstPnPId(HINF hInf, LPWSTR *lppszPnPId)
    350350{
     351    *lppszPnPId = NULL;
     352
    351353    LPWSTR lpszModels;
    352354    LPWSTR lpszPnPId;
     
    371373
    372374        if (hr != S_OK)
    373         {
    374375            NonStandardLogRelCrap((__FUNCTION__ ": vboxDrvCfgRegQueryKeyValue for models (%S) failed, hr=0x%x\n", lpszModels, hr));
    375         }
    376376    }
    377377    /* free models string right away */
    378378    free(lpszModels);
    379379    if (hr != S_OK)
    380     {
    381380        return hr;
    382     }
    383381
    384382    *lppszPnPId = lpszPnPId;
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