VirtualBox

Ignore:
Timestamp:
Jul 3, 2007 10:57:59 AM (17 years ago)
Author:
vboxsync
Message:

Don't clear structures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/dd.c

    r3384 r3386  
    154154    DISPDBG((0, "%s: %p, %p, %p, %p\n", __FUNCTION__, dhpdev, pCallBacks, pSurfaceCallBacks, pPaletteCallBacks));
    155155
    156     // Fill in the HAL Callback pointers
    157     memset(&pCallBacks, 0, sizeof(DD_CALLBACKS));
     156    /* Fill in the HAL Callback pointers */
    158157    pCallBacks->dwSize                = sizeof(DD_CALLBACKS);
    159158    pCallBacks->dwFlags               = 0;
     
    170169    /* Note: pCallBacks->SetMode & pCallBacks->DestroyDriver are unused in Windows 2000 and up */
    171170
    172     // Fill in the Surface Callback pointers
    173     memset(&pSurfaceCallBacks, 0, sizeof(DD_SURFACECALLBACKS));
     171    /* Fill in the Surface Callback pointers */
    174172    pSurfaceCallBacks->dwSize           = sizeof(DD_SURFACECALLBACKS);
    175173    pSurfaceCallBacks->dwFlags          = 0;
     
    189187//    pSurfaceCallBacks.dwFlags |= DDHAL_SURFCB32_SETCOLORKEY;
    190188
    191     memset(&pPaletteCallBacks, 0, sizeof(DD_PALETTECALLBACKS));
     189    /* Fill in the Palette Callback pointers */
    192190    pPaletteCallBacks->dwSize           = sizeof(DD_PALETTECALLBACKS);
    193191    pPaletteCallBacks->dwFlags          = 0;
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