diff --git a/src/video/windows/SDL_surface_utils.c b/src/video/windows/SDL_surface_utils.c index bdcac106b8..6bea99b847 100644 --- a/src/video/windows/SDL_surface_utils.c +++ b/src/video/windows/SDL_surface_utils.c @@ -36,7 +36,7 @@ HICON CreateIconFromSurface(SDL_Surface *surface) const int height = s->h; BITMAPINFO bmpInfo; - ZeroMemory(&bmpInfo, sizeof(BITMAPINFO)); + SDL_zero(bmpInfo); bmpInfo.bmiHeader.biSize = sizeof(BITMAPINFOHEADER); bmpInfo.bmiHeader.biWidth = width; bmpInfo.bmiHeader.biHeight = -height; /* Top-down bitmap */