[Bug 30205] Unity Editor is unable to move project files

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Jul 25 16:19:31 CDT 2013


http://bugs.winehq.org/show_bug.cgi?id=30205

--- Comment #4 from Klaus Weidner <Klaus.Weidner at gmail.com> 2013-07-25 16:19:31 CDT ---
I think I figured out what's going on. The Unity editor is calling
SHFileOperation and is checking the fAnyOperationsAborted field of the ops
struct, and this field apparently doesn't get reliably initialized to false for
successful calls.

The following patch fixed it for me, I can now successfully build projects.

$ diff -u dlls/shell32/shlfileop.c.orig dlls/shell32/shlfileop.c
--- dlls/shell32/shlfileop.c.orig       2013-07-25 14:14:17.823626457 -0700
+++ dlls/shell32/shlfileop.c    2013-07-25 14:13:49.591626494 -0700
@@ -1542,6 +1542,7 @@
     op.req = lpFileOp;
     op.bManyItems = (flFrom.dwNumFiles > 1);

+    lpFileOp->fAnyOperationsAborted = FALSE;
     switch (lpFileOp->wFunc)
     {
         case FO_COPY:

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list