From 39ab2ea41f31a37706c970e00d83a2f628b6bf96 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 24 May 2023 19:23:32 -0700 Subject: [PATCH] Fix typo in MSW io.cpp --- libs/kiplatform/msw/io.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/kiplatform/msw/io.cpp b/libs/kiplatform/msw/io.cpp index 4ec06b2161..fe4e041350 100644 --- a/libs/kiplatform/msw/io.cpp +++ b/libs/kiplatform/msw/io.cpp @@ -77,7 +77,7 @@ bool KIPLATFORM::IO::DuplicatePermissions( const wxString &aSrc, const wxString DWORD dwSize = 0; // Retrieve the security descriptor from the source file - if( GetFileSecurity( sourceFilePath.wc_str(), + if( GetFileSecurity( aSrc.wc_str(), OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION, NULL, 0, &dwSize ) ) { @@ -86,7 +86,7 @@ bool KIPLATFORM::IO::DuplicatePermissions( const wxString &aSrc, const wxString if( !pSD ) return false; - if( !GetFileSecurity( sourceFilePath.wc_str(), + if( !GetFileSecurity( aSrc.wc_str(), OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION, pSD, dwSize, &dwSize ) ) { @@ -95,7 +95,7 @@ bool KIPLATFORM::IO::DuplicatePermissions( const wxString &aSrc, const wxString } // Assign the retrieved security descriptor to the destination file - if( !SetFileSecurity( destFilePath.wc_str(), + if( !SetFileSecurity( aDest.wc_str(), OWNER_SECURITY_INFORMATION | GROUP_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION, pSD ) ) {