gc: fix line directive processing on windows

This change should have been part of 5671737303a0.

Fixes #5904

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/11894043
This commit is contained in:
Alex Brainman 2013-07-26 13:38:24 +10:00
parent ad5cd931d8
commit 32a3ce6799
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ outwinname(Biobuf *b, Hist *h, char *ds, char *p)
outzfile(b, p+1);
} else {
// relative name
if(h->offset == 0 && pathname && pathname[1] == ':') {
if(h->offset >= 0 && pathname && pathname[1] == ':') {
if(tolowerrune(ds[0]) == tolowerrune(pathname[0])) {
// using current drive
zfile(b, pathname, 3); // leading "c:/"