Windows fixes
This commit is contained in:
parent
41b9fea146
commit
1b69e6294d
7 changed files with 30 additions and 20 deletions
|
|
@ -40,8 +40,8 @@ func TerminateProcess(pid int) error {
|
|||
return exec.Command("TASKKILL", "/T", "/F", "/PID", fmt.Sprint(pid)).Run()
|
||||
}
|
||||
|
||||
var physicalDriveCheckRegexp = regexp.MustCompile(`^\\\\.\\PhysicalDrive(\d+)$`)
|
||||
var physicalDriveFindRegexp = regexp.MustCompile(`PhysicalDrive(\d+)`)
|
||||
var physicalDriveCheckRegexp = regexp.MustCompile(`(?i)^\\\\.\\PhysicalDrive(\d+)$`)
|
||||
var physicalDriveFindRegexp = regexp.MustCompile(`(?i)PhysicalDrive(\d+)`)
|
||||
|
||||
// This is never used except for a band-aid that would check
|
||||
// that there are no double-mounts.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue