summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-09-04 11:00:51 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2019-09-04 11:42:15 -0600
commita04254561f5fec47dbd9bab679d0b45ae7804a58 (patch)
tree2d90fb903ad7ab780e9112fc661ea6ea0a21c43a
parentMerge pull request #87 from Amebis/pending/uxtheme-consts (diff)
downloadwireguard-windows-a04254561f5fec47dbd9bab679d0b45ae7804a58.tar.xz
wireguard-windows-a04254561f5fec47dbd9bab679d0b45ae7804a58.zip
comctl32: do not call win32 api in init function
-rw-r--r--comctl32.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/comctl32.go b/comctl32.go
index 3ec4b84c..b0e22954 100644
--- a/comctl32.go
+++ b/comctl32.go
@@ -260,13 +260,6 @@ func init() {
initCommonControlsEx = libcomctl32.NewProc("InitCommonControlsEx")
loadIconMetric = libcomctl32.NewProc("LoadIconMetric")
loadIconWithScaleDown = libcomctl32.NewProc("LoadIconWithScaleDown")
-
- // Initialize the common controls we support
- var initCtrls INITCOMMONCONTROLSEX
- initCtrls.DwSize = uint32(unsafe.Sizeof(initCtrls))
- initCtrls.DwICC = ICC_LINK_CLASS | ICC_LISTVIEW_CLASSES | ICC_PROGRESS_CLASS | ICC_TAB_CLASSES | ICC_TREEVIEW_CLASSES
-
- InitCommonControlsEx(&initCtrls)
}
func ImageList_Add(himl HIMAGELIST, hbmImage, hbmMask HBITMAP) int32 {