From 94d1dfde2793dccdcaf105d77c6135cdae70fa5e Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 17 May 2011 22:54:20 +0100 Subject: virt-win-reg: Win XP paths can contain %systemdrive%. --- tools/virt-win-reg | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tools/virt-win-reg') diff --git a/tools/virt-win-reg b/tools/virt-win-reg index 56dd6d64..17c42a16 100755 --- a/tools/virt-win-reg +++ b/tools/virt-win-reg @@ -483,10 +483,11 @@ sub lookup_pip_of_user_sid chomp; # The contents of the registry are a windows path, possibly - # containing %systemroot%. Expand it and remove some other - # windows-isms. The caller will do case_sensitive_path for us, so - # we don't need to do that. + # containing %systemroot% and %systemdrive% (on Win XP). Expand + # it and remove some other windows-isms. The caller will do + # case_sensitive_path for us, so we don't need to do that. s/%systemroot%/$systemroot/i; + s/%systemdrive%//i; s/^c://i; s,\\,/,g; -- cgit