1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-02 08:59:28 +02:00

Bug Fix 1979 and fix CreateHardLink arg conversion errors

This commit is contained in:
Mike Barker 2019-01-29 13:51:22 +00:00 committed by Paul Licameli
parent 9d18263be6
commit 4e57a369be

View File

@ -75,8 +75,9 @@ bool FileNames::HardLinkFile( const wxString& file1, const wxString& file2 )
{
#ifdef __WXMSW__
return ::CreateHardLinkA( file1.c_str(), file2.c_str(), NULL );
//return false;
// Fix forced ASCII conversions and wrong argument order - MJB - 29/01/2019
//return ::CreateHardLinkA( file1.c_str(), file2.c_str(), NULL );
return ( 0 != ::CreateHardLink( file2, file1, NULL ) );
#else