VirtualBox

Ignore:
Timestamp:
Jul 15, 2009 8:06:37 AM (15 years ago)
Author:
vboxsync
Message:

video hw accel: interrupt support in guest video adapter & driver, NetFlt/Adp/win: get rid of alloca

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/VBoxNetFlt-win.c

    r21343 r21596  
    21852185        PVBOXNETFLTINS pInstance;
    21862186        USHORT cbAnsiName = pBindToMiniportName->Length;/* the lenght is is bytes ; *2 ;RtlUnicodeStringToAnsiSize(pBindToMiniportName)*/
    2187         char* pAnsiName = alloca(cbAnsiName);
     2187//        char* pAnsiName = alloca(cbAnsiName);
    21882188        CREATE_INSTANCE_CONTEXT Context;
    21892189        RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER;
     
    21982198        Context.Status = NDIS_STATUS_SUCCESS;
    21992199
    2200         AnsiString.Buffer = pAnsiName;
     2200//        AnsiString.Buffer = pAnsiName;
    22012201        AnsiString.Length = 0;
    22022202        AnsiString.MaximumLength = cbAnsiName;
     
    22042204        Assert(KeGetCurrentIrql() == PASSIVE_LEVEL);
    22052205
    2206         Status = RtlUnicodeStringToAnsiString(&AnsiString, pBindToMiniportName, false);
     2206        Status = RtlUnicodeStringToAnsiString(&AnsiString, pBindToMiniportName, true);
    22072207
    22082208        if(Status != STATUS_SUCCESS)
     
    22112211        }
    22122212
    2213         rc = vboxNetFltSearchCreateInstance(&g_VBoxNetFltGlobals, pAnsiName, &pInstance, &Context);
     2213        rc = vboxNetFltSearchCreateInstance(&g_VBoxNetFltGlobals, AnsiString.Buffer, &pInstance, &Context);
     2214        RtlFreeAnsiString(&AnsiString);
    22142215        if(RT_FAILURE(rc))
    22152216        {
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