Windows: GUI "Open" works

This commit is contained in:
Jean-Francois Dockes
2015-10-09 11:03:27 +02:00
parent 6433deaff6
commit e18291ef64
10 changed files with 135 additions and 15 deletions
+1 -1
View File
@@ -153,7 +153,7 @@ public:
};
bool ExecCmd::Internal::o_useVfork = false;
ExecCmd::ExecCmd()
ExecCmd::ExecCmd(int)
{
m = new Internal();
if (m)
+8 -1
View File
@@ -176,7 +176,14 @@ class ExecCmd {
*/
bool requestChildExit();
ExecCmd();
enum ExFlags {EXF_NONE,
// Only does anything on windows. Used when starting
// a viewer. The default is to hide the window,
// because it avoids windows appearing and
// disappearing when executing stuff for previewing
EXF_SHOWWINDOW = 1,
};
ExecCmd(int flags = 0);
~ExecCmd();
/**
+4
View File
@@ -361,6 +361,10 @@ FsTreeWalker::Status FsTreeWalker::iwalk(const string &top,
case EPERM:
case EACCES:
case ENOENT:
#ifdef _WIN32
// We get this quite a lot, don't know why. To be checked.
case EINVAL:
#endif
goto out;
default:
status = FtwError;