diff options
-rwxr-xr-x | oowintool | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/oowintool b/oowintool index 890114a70994..c9e08107af96 100755 --- a/oowintool +++ b/oowintool @@ -275,7 +275,9 @@ sub print_dotnetsdk_dir() my $dir = reg_get_value ("HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/.NETFramework/sdkInstallRootv1.1") || reg_get_value ("HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/.NETFramework/sdkInstallRootv2.0"); - print cygpath ($dir, 'w', $output_format); + if ($dir) { + print cygpath ($dir, 'w', $output_format); + } } sub print_jdk_dir() |