summaryrefslogtreecommitdiff
path: root/redo/dialog_windows.go
blob: 9ea483c30c23c419b696c26ca8ec32a87dcc3ba7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 18 august 2014

package ui

import (
	"unsafe"
)

// #include "winapi_windows.h"
import "C"

func openFile() string {
	name := C.openFile()
	if name == nil {
		return ""
	}
	defer C.free(unsafe.Pointer(name))
	return wstrToString(name)
}