From a04254561f5fec47dbd9bab679d0b45ae7804a58 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 4 Sep 2019 11:00:51 -0600 Subject: comctl32: do not call win32 api in init function --- comctl32.go | 7 ------- 1 file changed, 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 { -- cgit v1.2.3-59-g8ed1b