Ver Fonte

Fix Win32 rename function.

Saracen há 1 ano atrás
pai
commit
6069cb3475
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      drivers/windows/dir_access_windows.cpp

+ 1 - 1
drivers/windows/dir_access_windows.cpp

@@ -304,7 +304,7 @@ Error DirAccessWindows::rename(String p_path, String p_new_path) {
 			}
 		}
 
-		return MoveFileW((LPCWSTR)(path.utf16().get_data()), (LPCWSTR)(p_new_path.utf16().get_data())) != 0 ? OK : FAILED;
+		return MoveFileW((LPCWSTR)(path.utf16().get_data()), (LPCWSTR)(new_path.utf16().get_data())) != 0 ? OK : FAILED;
 	}
 }