summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAlexander Neumann <alexander.neumann@picos-software.com>2019-09-05 17:22:57 +0200
committerGitHub <noreply@github.com>2019-09-05 17:22:57 +0200
commit9739bfe37f9b2f0e985497d4dc343a0bf78dfab5 (patch)
tree2d90fb903ad7ab780e9112fc661ea6ea0a21c43a
parentMerge pull request #87 from Amebis/pending/uxtheme-consts (diff)
parentcomctl32: do not call win32 api in init function (diff)
downloadwireguard-windows-9739bfe37f9b2f0e985497d4dc343a0bf78dfab5.tar.xz
wireguard-windows-9739bfe37f9b2f0e985497d4dc343a0bf78dfab5.zip
Merge pull request #88 from zx2c4-forks/jd/noglobalinit
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 {