VirtualBox

Changeset 106923 in vbox for trunk


Ignore:
Timestamp:
Nov 11, 2024 10:49:58 AM (6 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
165849
Message:

Windows driver installation: Renamed + added some more defines. bugref:10762

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/VBoxWinDrvDefs.h

    r106866 r106923  
    6565#define VBOXWINDRVINF_DOT_NT_NATIVE_ARCH_STR VBOXWINDRVINF_DECORATION_SEP_STR VBOXWINDRVINF_NT_NATIVE_ARCH_STR
    6666
    67 /** Maximum catalog file (.cat) length (in characters). */
    68 #define VBOXWINDRVINF_MAX_CATALOG_FILE     255
    69 /** Maximum driver version length (in characters). */
    70 #define VBOXWINDRVINF_MAX_DRIVER_VER       255
    71 /** Maximum provider name length (in characters). */
    72 #define VBOXWINDRVINF_MAX_PROVIDER_FILE    255
     67/** Maximum INF catalog file (.cat) length (in characters). */
     68#define VBOXWINDRVINF_MAX_CATALOG_FILE_LEN     255
     69/** Maximum INF driver version length (in characters). */
     70#define VBOXWINDRVINF_MAX_DRIVER_VER_LEN       255
     71/** Maximum INF provider name length (in characters). */
     72#define VBOXWINDRVINF_MAX_PROVIDER_NAME_LEN    255
    7373/** Maximum INF section name length (in characters). */
    74 #define VBOXWINDRVINF_MAX_INF_SECTION_NAME 255
     74#define VBOXWINDRVINF_MAX_SECTION_NAME_LEN     255
     75/** Maximum INF model name length (in characters). */
     76#define VBOXWINDRVINF_MAX_MODEL_NAME_LEN       255
     77/** Maximum INF PnP ID length (in characters). */
     78#define VBOXWINDRVINF_MAX_PNP_ID_LEN           255
     79
    7580
    7681/**
     
    8085{
    8186    /** Catalog (.cat) file. */
    82     RTUTF16 wszCatalogFile[VBOXWINDRVINF_MAX_CATALOG_FILE];
     87    RTUTF16 wszCatalogFile[VBOXWINDRVINF_MAX_CATALOG_FILE_LEN];
    8388    /** Driver version. */
    84     RTUTF16 wszDriverVer[VBOXWINDRVINF_MAX_DRIVER_VER];
     89    RTUTF16 wszDriverVer[VBOXWINDRVINF_MAX_DRIVER_VER_LEN];
    8590    /** Provider name. */
    86     RTUTF16 wszProvider[VBOXWINDRVINF_MAX_PROVIDER_FILE];
     91    RTUTF16 wszProvider[VBOXWINDRVINF_MAX_PROVIDER_NAME_LEN];
    8792} VBOXWINDRVINFSEC_VERSION;
    8893/** Pointer to structure for keeping INF Version section information. */
  • trunk/src/VBox/GuestHost/installation/VBoxWinDrvCommon.cpp

    r106890 r106923  
    256256        if (RTUtf16FindAscii(pwszPlatform, VBOXWINDRVINF_NT_NATIVE_ARCH_STR) == 0)
    257257        {
    258             RTUTF16 wszSection[VBOXWINDRVINF_MAX_INF_SECTION_NAME];
     258            RTUTF16 wszSection[VBOXWINDRVINF_MAX_SECTION_NAME_LEN];
    259259            rc = RTUtf16Copy(wszSection, sizeof(wszSection), pwszModel);
    260260            if (RT_SUCCESS(rc))
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