summaryrefslogtreecommitdiffstats
path: root/win/tkWinIco.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-11-15 08:22:00 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-11-15 08:22:00 (GMT)
commit8681561d581302e9a8d483bbacf53bce20336336 (patch)
treea649c6b90bca86b4143501666eaddb002872ae77 /win/tkWinIco.c
parentf04bc88816f8493150db95a893ce05a5a53bd9b9 (diff)
downloadtk-8681561d581302e9a8d483bbacf53bce20336336.zip
tk-8681561d581302e9a8d483bbacf53bce20336336.tar.gz
tk-8681561d581302e9a8d483bbacf53bce20336336.tar.bz2
Switch off XLIB_ILLEGAL_ACCESS in Xlib.h, making some acess to Display only possible through macro's
Diffstat (limited to 'win/tkWinIco.c')
-rw-r--r--win/tkWinIco.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tkWinIco.c b/win/tkWinIco.c
index 4485787..134e7f0 100644
--- a/win/tkWinIco.c
+++ b/win/tkWinIco.c
@@ -155,14 +155,14 @@ CreateIcoFromPhoto(
* converts them as required. Initialise icon info structure.
*/
- ZeroMemory(&iconInfo, sizeof(iconInfo));
+ memset(&iconInfo, 0, sizeof(iconInfo));
iconInfo.fIcon = TRUE;
/*
* Create device-independent color bitmap.
*/
- ZeroMemory(&bmInfo, sizeof bmInfo);
+ memset(&bmInfo, 0, sizeof bmInfo);
bmInfo.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
bmInfo.bmiHeader.biWidth = width;
bmInfo.bmiHeader.biHeight = -height;
@@ -203,7 +203,7 @@ CreateIcoFromPhoto(
return NULL;
}
- ZeroMemory(bgraMask.ptr, width*height/8);
+ memset(bgraMask.ptr, 0, width*height/8);
/*
* Create an icon from the bitmaps.