Index: shell32/shlfileop.c =================================================================== RCS file: /home/wine/wine/dlls/shell32/shlfileop.c,v retrieving revision 1.38 diff -u -r1.38 shlfileop.c --- shell32/shlfileop.c 20 Apr 2004 01:12:17 -0000 1.38 +++ shell32/shlfileop.c 28 May 2004 20:14:22 -0000 @@ -1176,9 +1176,15 @@ /* singlesource + no mask */ if (-1 == (ToAttr & ToPathAttr)) { - /* Target-dir does not exist, and cannot be created */ - retCode=0x75; - goto shfileop_error; + /* The destination directory for the file doesn't exist, create it. */ + pToFile[0] = '\0'; + if (SHCreateDirectoryExW(NULL,pTempTo, NULL)) + { + /* Target-dir does not exist, and cannot be created */ + retCode=0x75; + goto shfileop_error; + } + pToFile[0] = '\\'; } switch(FuncSwitch)