Changeset 21596 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt
- Timestamp:
- Jul 15, 2009 8:06:37 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/VBoxNetFlt-win.c
r21343 r21596 2185 2185 PVBOXNETFLTINS pInstance; 2186 2186 USHORT cbAnsiName = pBindToMiniportName->Length;/* the lenght is is bytes ; *2 ;RtlUnicodeStringToAnsiSize(pBindToMiniportName)*/ 2187 char* pAnsiName = alloca(cbAnsiName);2187 // char* pAnsiName = alloca(cbAnsiName); 2188 2188 CREATE_INSTANCE_CONTEXT Context; 2189 2189 RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER; … … 2198 2198 Context.Status = NDIS_STATUS_SUCCESS; 2199 2199 2200 AnsiString.Buffer = pAnsiName;2200 // AnsiString.Buffer = pAnsiName; 2201 2201 AnsiString.Length = 0; 2202 2202 AnsiString.MaximumLength = cbAnsiName; … … 2204 2204 Assert(KeGetCurrentIrql() == PASSIVE_LEVEL); 2205 2205 2206 Status = RtlUnicodeStringToAnsiString(&AnsiString, pBindToMiniportName, false);2206 Status = RtlUnicodeStringToAnsiString(&AnsiString, pBindToMiniportName, true); 2207 2207 2208 2208 if(Status != STATUS_SUCCESS) … … 2211 2211 } 2212 2212 2213 rc = vboxNetFltSearchCreateInstance(&g_VBoxNetFltGlobals, pAnsiName, &pInstance, &Context); 2213 rc = vboxNetFltSearchCreateInstance(&g_VBoxNetFltGlobals, AnsiString.Buffer, &pInstance, &Context); 2214 RtlFreeAnsiString(&AnsiString); 2214 2215 if(RT_FAILURE(rc)) 2215 2216 {
Note:
See TracChangeset
for help on using the changeset viewer.