1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 08:18:52 -05:00

JNA 4.3.0

This commit is contained in:
Reinhard Pointner 2017-01-17 18:24:30 +08:00
parent 76e6068e13
commit 899a4f836e

View File

@ -10,7 +10,6 @@ import java.util.Map;
import java.util.concurrent.CancellationException;
import com.sun.jna.Platform;
import com.sun.jna.WString;
import com.sun.jna.platform.win32.Shell32;
import com.sun.jna.platform.win32.ShellAPI;
import com.sun.jna.platform.win32.ShellAPI.SHFILEOPSTRUCT;
@ -46,8 +45,8 @@ public enum NativeRenameAction implements RenameAction {
op.wFunc = (action == MOVE) ? ShellAPI.FO_MOVE : ShellAPI.FO_COPY;
op.fFlags = Shell32.FOF_MULTIDESTFILES | Shell32.FOF_NOCOPYSECURITYATTRIBS | Shell32.FOF_NOCONFIRMATION | Shell32.FOF_NOCONFIRMMKDIR;
op.pFrom = new WString(op.encodePaths(src));
op.pTo = new WString(op.encodePaths(dst));
op.pFrom = op.encodePaths(src);
op.pTo = op.encodePaths(dst);
Shell32.INSTANCE.SHFileOperation(op);