mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 05:26:58 +00:00
[SHELLBTRFS] Fix GCC build
CORE-15048
This commit is contained in:
parent
0f47f27829
commit
71ac5e6c65
|
@ -1090,6 +1090,10 @@ static void unserialize(void* data, ULONG len, WCHAR* s) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
void CALLBACK StartBalanceW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nCmdShow) {
|
void CALLBACK StartBalanceW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nCmdShow) {
|
||||||
WCHAR *s, *vol, *block;
|
WCHAR *s, *vol, *block;
|
||||||
HANDLE h, token;
|
HANDLE h, token;
|
||||||
|
@ -1291,3 +1295,7 @@ void CALLBACK StopBalanceW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int n
|
||||||
end:
|
end:
|
||||||
CloseHandle(token);
|
CloseHandle(token);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
} /* extern "C" */
|
||||||
|
#endif
|
||||||
|
|
|
@ -1718,6 +1718,10 @@ end:
|
||||||
CloseHandle(source);
|
CloseHandle(source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
void CALLBACK ReflinkCopyW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nCmdShow) {
|
void CALLBACK ReflinkCopyW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nCmdShow) {
|
||||||
LPWSTR* args;
|
LPWSTR* args;
|
||||||
int num_args;
|
int num_args;
|
||||||
|
@ -1796,3 +1800,7 @@ void CALLBACK ReflinkCopyW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int n
|
||||||
end:
|
end:
|
||||||
LocalFree(args);
|
LocalFree(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
} /* extern "C" */
|
||||||
|
#endif
|
||||||
|
|
|
@ -1987,6 +1987,10 @@ void BtrfsRecv::Open(HWND hwnd, WCHAR* file, WCHAR* path, BOOL quiet) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
void CALLBACK RecvSubvolGUIW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nCmdShow) {
|
void CALLBACK RecvSubvolGUIW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nCmdShow) {
|
||||||
OPENFILENAMEW ofn;
|
OPENFILENAMEW ofn;
|
||||||
WCHAR file[MAX_PATH];
|
WCHAR file[MAX_PATH];
|
||||||
|
@ -2145,3 +2149,7 @@ void CALLBACK RecvSubvolW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nC
|
||||||
end:
|
end:
|
||||||
LocalFree(args);
|
LocalFree(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
} /* extern "C" */
|
||||||
|
#endif
|
||||||
|
|
|
@ -566,6 +566,10 @@ static INT_PTR CALLBACK stub_ScrubDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
void CALLBACK ShowScrubW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nCmdShow) {
|
void CALLBACK ShowScrubW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nCmdShow) {
|
||||||
HANDLE token;
|
HANDLE token;
|
||||||
TOKEN_PRIVILEGES tp;
|
TOKEN_PRIVILEGES tp;
|
||||||
|
@ -694,3 +698,7 @@ void CALLBACK StopScrubW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nCm
|
||||||
end:
|
end:
|
||||||
LocalFree(args);
|
LocalFree(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
} /* extern "C" */
|
||||||
|
#endif
|
||||||
|
|
|
@ -547,6 +547,10 @@ void BtrfsSend::Open(HWND hwnd, LPWSTR path) {
|
||||||
ShowError(hwnd, GetLastError());
|
ShowError(hwnd, GetLastError());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
void CALLBACK SendSubvolGUIW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nCmdShow) {
|
void CALLBACK SendSubvolGUIW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nCmdShow) {
|
||||||
HANDLE token;
|
HANDLE token;
|
||||||
TOKEN_PRIVILEGES tp;
|
TOKEN_PRIVILEGES tp;
|
||||||
|
@ -585,6 +589,10 @@ void CALLBACK SendSubvolGUIW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int
|
||||||
CloseHandle(token);
|
CloseHandle(token);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
} /* extern "C" */
|
||||||
|
#endif
|
||||||
|
|
||||||
static void send_subvol(std::wstring subvol, std::wstring file, std::wstring parent, std::vector<std::wstring> clones) {
|
static void send_subvol(std::wstring subvol, std::wstring file, std::wstring parent, std::vector<std::wstring> clones) {
|
||||||
char* buf;
|
char* buf;
|
||||||
HANDLE dirh, stream;
|
HANDLE dirh, stream;
|
||||||
|
@ -697,6 +705,10 @@ end3:
|
||||||
free(buf);
|
free(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
void CALLBACK SendSubvolW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nCmdShow) {
|
void CALLBACK SendSubvolW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nCmdShow) {
|
||||||
LPWSTR* args;
|
LPWSTR* args;
|
||||||
int num_args;
|
int num_args;
|
||||||
|
@ -755,3 +767,7 @@ void CALLBACK SendSubvolW(HWND hwnd, HINSTANCE hinst, LPWSTR lpszCmdLine, int nC
|
||||||
end:
|
end:
|
||||||
LocalFree(args);
|
LocalFree(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
} /* extern "C" */
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue