VirtualBox

Ignore:
Timestamp:
Jul 29, 2016 1:25:48 PM (8 years ago)
Author:
vboxsync
Message:

Use the iprt/win/setupapi.h wrapper for setupapi.h to deal with preprocessor warnings.

File:
1 edited

Legend:

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

    r62491 r62686  
    2222#include <VBox/VBoxDrvCfg-win.h>
    2323
    24 #include <setupapi.h>
     24#include <iprt/win/setupapi.h>
    2525#include <shlobj.h>
    2626
     
    362362
    363363    LPWSTR lpszModels;
    364     LPWSTR lpszPnPId;
    365364    HRESULT hr = vboxDrvCfgInfQueryModelsSectionName(hInf, &lpszModels, NULL);
    366365    NonStandardLogRelCrap((__FUNCTION__ ": vboxDrvCfgInfQueryModelsSectionName returned lpszModels = (%S)", lpszModels));
     
    371370    }
    372371
     372    LPWSTR lpszPnPId = NULL;
    373373    INFCONTEXT InfCtx;
    374374    hr = vboxDrvCfgInfQueryContext(hInf, lpszModels, NULL, &InfCtx);
     
    454454{
    455455    DWORD dwErr = ERROR_SUCCESS;
    456     int counter = 0;
    457456    HDEVINFO hDevInfo = SetupDiCreateDeviceInfoList(
    458457                            pGuid, /* IN LPGUID ClassGuid, OPTIONAL */
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