- Timestamp:
- Nov 11, 2024 10:49:58 AM (6 months ago)
- svn:sync-xref-src-repo-rev:
- 165849
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/GuestHost/VBoxWinDrvDefs.h
r106866 r106923 65 65 #define VBOXWINDRVINF_DOT_NT_NATIVE_ARCH_STR VBOXWINDRVINF_DECORATION_SEP_STR VBOXWINDRVINF_NT_NATIVE_ARCH_STR 66 66 67 /** Maximum catalog file (.cat) length (in characters). */68 #define VBOXWINDRVINF_MAX_CATALOG_FILE 25569 /** Maximum driver version length (in characters). */70 #define VBOXWINDRVINF_MAX_DRIVER_VER 25571 /** Maximum provider name length (in characters). */72 #define VBOXWINDRVINF_MAX_PROVIDER_ FILE25567 /** 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 73 73 /** 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 75 80 76 81 /** … … 80 85 { 81 86 /** Catalog (.cat) file. */ 82 RTUTF16 wszCatalogFile[VBOXWINDRVINF_MAX_CATALOG_FILE ];87 RTUTF16 wszCatalogFile[VBOXWINDRVINF_MAX_CATALOG_FILE_LEN]; 83 88 /** Driver version. */ 84 RTUTF16 wszDriverVer[VBOXWINDRVINF_MAX_DRIVER_VER ];89 RTUTF16 wszDriverVer[VBOXWINDRVINF_MAX_DRIVER_VER_LEN]; 85 90 /** Provider name. */ 86 RTUTF16 wszProvider[VBOXWINDRVINF_MAX_PROVIDER_ FILE];91 RTUTF16 wszProvider[VBOXWINDRVINF_MAX_PROVIDER_NAME_LEN]; 87 92 } VBOXWINDRVINFSEC_VERSION; 88 93 /** Pointer to structure for keeping INF Version section information. */ -
trunk/src/VBox/GuestHost/installation/VBoxWinDrvCommon.cpp
r106890 r106923 256 256 if (RTUtf16FindAscii(pwszPlatform, VBOXWINDRVINF_NT_NATIVE_ARCH_STR) == 0) 257 257 { 258 RTUTF16 wszSection[VBOXWINDRVINF_MAX_ INF_SECTION_NAME];258 RTUTF16 wszSection[VBOXWINDRVINF_MAX_SECTION_NAME_LEN]; 259 259 rc = RTUtf16Copy(wszSection, sizeof(wszSection), pwszModel); 260 260 if (RT_SUCCESS(rc))
Note:
See TracChangeset
for help on using the changeset viewer.