Changeset 83825 in vbox
- Timestamp:
- Apr 19, 2020 1:23:28 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/SharedFolders/np/vboxmrxnp.cpp
r82968 r83825 1145 1145 { 1146 1146 /* It is a leading backslash. Construct "no parent" NETRESOURCE. */ 1147 NETRESOURCE *pNetResource = (NETRESOURCE *)pBuffer;1147 NETRESOURCE *pNetResourceNP = (NETRESOURCE *)pBuffer; 1148 1148 1149 1149 cbEntry = sizeof(NETRESOURCE); … … 1159 1159 else 1160 1160 { 1161 memset (pNetResource , 0, sizeof (*pNetResource));1162 1163 pNetResource ->dwType = RESOURCETYPE_ANY;1164 pNetResource ->dwDisplayType = RESOURCEDISPLAYTYPE_NETWORK;1165 pNetResource ->dwUsage = RESOURCEUSAGE_CONTAINER;1161 memset (pNetResourceNP, 0, sizeof (*pNetResourceNP)); 1162 1163 pNetResourceNP->dwType = RESOURCETYPE_ANY; 1164 pNetResourceNP->dwDisplayType = RESOURCEDISPLAYTYPE_NETWORK; 1165 pNetResourceNP->dwUsage = RESOURCEUSAGE_CONTAINER; 1166 1166 1167 1167 WCHAR *pStrings = (WCHAR *)((PBYTE)pBuffer + *pBufferSize); 1168 1168 pStrings = (PWCHAR)((PBYTE)pStrings - (cbEntry - sizeof(NETRESOURCE))); 1169 1169 1170 pNetResource ->lpRemoteName = pStrings;1170 pNetResourceNP->lpRemoteName = pStrings; 1171 1171 CopyMemory (pStrings, MRX_VBOX_PROVIDER_NAME_U, sizeof(MRX_VBOX_PROVIDER_NAME_U)); 1172 1172 pStrings += sizeof(MRX_VBOX_PROVIDER_NAME_U) / sizeof(WCHAR); 1173 1173 1174 pNetResource ->lpProvider = pStrings;1174 pNetResourceNP->lpProvider = pStrings; 1175 1175 CopyMemory (pStrings, MRX_VBOX_PROVIDER_NAME_U, sizeof(MRX_VBOX_PROVIDER_NAME_U)); 1176 1176 pStrings += sizeof(MRX_VBOX_PROVIDER_NAME_U) / sizeof(WCHAR);
Note:
See TracChangeset
for help on using the changeset viewer.