]> git.lyx.org Git - lyx.git/blobdiff - src/support/os_win32.cpp
Correct comment
[lyx.git] / src / support / os_win32.cpp
index 82e57d2eb69adfe1a72074505bae21856b58016b..536d2a64460d07854c2b1900e2776a027d3b8b39 100644 (file)
@@ -32,6 +32,7 @@
 #include "support/lassert.h"
 
 #include <cstdlib>
+#include <iostream>
 #include <vector>
 
 #include <QString>
@@ -228,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, ' ');
                }
        }