diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-09-04 11:00:51 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-09-04 11:42:15 -0600 |
commit | a04254561f5fec47dbd9bab679d0b45ae7804a58 (patch) | |
tree | 2d90fb903ad7ab780e9112fc661ea6ea0a21c43a | |
parent | Merge pull request #87 from Amebis/pending/uxtheme-consts (diff) | |
download | wireguard-windows-a04254561f5fec47dbd9bab679d0b45ae7804a58.tar.xz wireguard-windows-a04254561f5fec47dbd9bab679d0b45ae7804a58.zip |
comctl32: do not call win32 api in init function
-rw-r--r-- | comctl32.go | 7 |
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 { |