# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
--- /home/sickboy/Desktop/backup/src/main/java/org/jvnet/winp/Native.java
+++ /home/sickboy/Desktop/winp/src/main/java/org/jvnet/winp/Native.java
@@ -73,8 +73,9 @@
                         filePortion = filePortion.substring(2);
                     filePortion = URLDecoder.decode(filePortion);
                     String preferred = System.getProperty(DLL_TARGET);
-                    File jarFile = new File(preferred != null ? preferred : filePortion);
-                    File dllFile = new File(jarFile.getParentFile(),dllName+".dll");
+                    File jarFile = new File(filePortion);
+                    File dllFile = new File(preferred != null
+                            ? new File(preferred) : jarFile.getParentFile(),dllName+".dll");
                     if(!dllFile.exists() || jarFile.lastModified()>dllFile.lastModified()) {
                         // try to extract from within the jar
                         try {
