From c3a87ab7134fbbdbc0792c0df8c9aa06b4713d8a Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 4 Jun 2014 19:29:37 -0400 Subject: Resolved the ACTCTX_FLAG_SET_PROCESS_DEFAULT TODO by deciding to enable this flag for maximum safety. Also added more future plans. --- comctl_windows.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'comctl_windows.go') diff --git a/comctl_windows.go b/comctl_windows.go index b11c892..0e01ef4 100644 --- a/comctl_windows.go +++ b/comctl_windows.go @@ -55,7 +55,8 @@ func forceCommonControls6() (err error) { } actctx.cbSize = uint32(unsafe.Sizeof(actctx)) - // TODO set ACTCTX_FLAG_SET_PROCESS_DEFAULT? I can't find a reference to figure out what this means + // make this context the process default, just to be safe + actctx.dwFlags = _ACTCTX_FLAG_SET_PROCESS_DEFAULT actctx.lpSource = toUTF16(filename) r1, _, err := _createActCtx.Call(uintptr(unsafe.Pointer(&actctx))) -- cgit v1.2.3