diff --git a/src/msw/bitmap.cpp b/src/msw/bitmap.cpp index dbb6114bee..8be40253f6 100644 --- a/src/msw/bitmap.cpp +++ b/src/msw/bitmap.cpp @@ -1865,6 +1865,7 @@ HICON wxBitmapToIconOrCursor(const wxBitmap& bmp, } ICONINFO iconInfo; + wxZeroMemory(iconInfo); iconInfo.fIcon = iconWanted; // do we want an icon or a cursor? if ( !iconWanted ) {