Fix filename option (windows).
This commit is contained in:
parent
e03bf87915
commit
d6dcc4b176
1 changed files with 1 additions and 1 deletions
|
@ -350,7 +350,7 @@ func initDirNameExt(filename string, name []uint16) (dir *uint16, ext *uint16) {
|
||||||
d, n := splitDirAndName(filename)
|
d, n := splitDirAndName(filename)
|
||||||
e := filepath.Ext(n)
|
e := filepath.Ext(n)
|
||||||
if n != "" {
|
if n != "" {
|
||||||
copy(name, syscall.StringToUTF16(filename))
|
copy(name, syscall.StringToUTF16(n))
|
||||||
}
|
}
|
||||||
if d != "" {
|
if d != "" {
|
||||||
dir = syscall.StringToUTF16Ptr(d)
|
dir = syscall.StringToUTF16Ptr(d)
|
||||||
|
|
Loading…
Reference in a new issue