]> git.lyx.org Git - lyx.git/blobdiff - src/support/os_win32.cpp
Correct comment
[lyx.git] / src / support / os_win32.cpp
index e4f9ebd0fcbd9a15405f082545bd3b2f108a3e7a..536d2a64460d07854c2b1900e2776a027d3b8b39 100644 (file)
@@ -229,8 +229,8 @@ void init(int argc, char ** argv[])
                        // to the outer split which sets cygdrive with its
                        // contents until the first blank, discarding the
                        // unneeded return value.
-                       if (p.first != -1 && prefixIs(p.second, "Prefix"))
-                               split(split(p.second, '\n'), cygdrive, ' ');
+                       if (p.valid && prefixIs(p.result, "Prefix"))
+                               split(split(p.result, '\n'), cygdrive, ' ');
                }
        }