Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for UTF16PtrFromString (0.21 sec)

  1. internal/lock/lock_windows.go

    // acls is out of scope here.
    func Open(path string, flag int, perm os.FileMode) (*os.File, error) {
    	if path == "" {
    		return nil, syscall.ERROR_FILE_NOT_FOUND
    	}
    
    	pathp, err := syscall.UTF16PtrFromString(fixLongPath(path))
    	if err != nil {
    		return nil, err
    	}
    
    	var access uint32
    	switch flag {
    	case syscall.O_RDONLY:
    		access = syscall.GENERIC_READ
    	case syscall.O_WRONLY:
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 7.9K bytes
    - Viewed (0)
Back to top