You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: path_windows.go
    path of file: ./repos/devspace/vendor/github.com/moby/buildkit/util/system
    
    the code of the file until where you have to start completion: //go:build windows
// +build windows

package system

import (
	"path/filepath"
	"strings"

	"github.com/pkg/errors"
)

// CheckSystemDriveAndRemoveDriveLetter verifies and manipulates a Windows path.
// This is used, for example, when validating a user provided path in docke
    
func CheckSystemDriveAndRemoveDriveLetter(path string) (string, error) {
	if len(path) == 2 && string(path[1]) == ":" {
		return "", errors.Errorf("No relative path specified in %q", path)
	}
	if !filepath.IsAbs(path) || len(path) < 2 {
		return filepath.FromSlash(path), nil
	}
	if string(path[1]) == ":" && !strings.EqualFold(string(path[0]), "c") {
		return "", errors.New("The specified path is not on the system drive (C:)")
	}
	return filepath.FromSlash(path[2:]), nil
}