[SHELLBTRFS] Upgrade to 1.0.2

CORE-14655
This commit is contained in:
Pierre Schweitzer
2018-05-26 10:58:48 +02:00
parent c7806a6b29
commit 2da53310a4
6 changed files with 19 additions and 10 deletions

View File

@@ -900,6 +900,7 @@ BOOL BtrfsContextMenu::reflink_copy(HWND hwnd, const WCHAR* fn, const WCHAR* dir
if (stream == INVALID_HANDLE_VALUE) {
ShowError(hwnd, GetLastError());
FindClose(h);
goto end;
}
@@ -909,6 +910,7 @@ BOOL BtrfsContextMenu::reflink_copy(HWND hwnd, const WCHAR* fn, const WCHAR* dir
if (!ReadFile(stream, data, fsd.StreamSize.QuadPart, &bytesret, NULL)) {
ShowError(hwnd, GetLastError());
FindClose(h);
free(data);
CloseHandle(stream);
goto end;
@@ -922,6 +924,7 @@ BOOL BtrfsContextMenu::reflink_copy(HWND hwnd, const WCHAR* fn, const WCHAR* dir
if (stream == INVALID_HANDLE_VALUE) {
ShowError(hwnd, GetLastError());
FindClose(h);
if (data) free(data);
goto end;
@@ -930,6 +933,7 @@ BOOL BtrfsContextMenu::reflink_copy(HWND hwnd, const WCHAR* fn, const WCHAR* dir
if (data) {
if (!WriteFile(stream, data, fsd.StreamSize.QuadPart, &bytesret, NULL)) {
ShowError(hwnd, GetLastError());
FindClose(h);
free(data);
CloseHandle(stream);
goto end;