mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 23:40:13 +00:00
windows-pioctl-drive-map-20081026
LICENSE MIT a remote drive connection may not be mapped to a local drive letter.
This commit is contained in:
parent
a824cbda62
commit
aa09aa2be1
@ -446,7 +446,8 @@ DriveIsMappedToAFS(char *drivestr, char *NetbiosName)
|
|||||||
//
|
//
|
||||||
if (dwResultEnum == NO_ERROR) {
|
if (dwResultEnum == NO_ERROR) {
|
||||||
for (i = 0; i < cEntries; i++) {
|
for (i = 0; i < cEntries; i++) {
|
||||||
if (toupper(lpnrLocal[i].lpLocalName[0]) == toupper(drivestr[0])) {
|
if (lpnrLocal[i].lpLocalName &&
|
||||||
|
toupper(lpnrLocal[i].lpLocalName[0]) == toupper(drivestr[0])) {
|
||||||
//
|
//
|
||||||
// Skip the two backslashes at the start of the UNC device name
|
// Skip the two backslashes at the start of the UNC device name
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user