summaryrefslogtreecommitdiff
path: root/comctl_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-06-04 19:29:37 -0400
committerPietro Gagliardi <[email protected]>2014-06-04 19:30:19 -0400
commitc3a87ab7134fbbdbc0792c0df8c9aa06b4713d8a (patch)
tree91ff01efb752d93b92bdd4c0b0a296f8de7a8b2a /comctl_windows.go
parentfb7e638d697a909ef791b11837ff3c17be933bd3 (diff)
Resolved the ACTCTX_FLAG_SET_PROCESS_DEFAULT TODO by deciding to enable this flag for maximum safety. Also added more future plans.
Diffstat (limited to 'comctl_windows.go')
-rw-r--r--comctl_windows.go3
1 files changed, 2 insertions, 1 deletions
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)))