continue;
}
// Not found, so let's upload it
- hr = connection->SendFile(bstr(localControlFile), bstr(remoteControlFile), 2, 2, NULL);
+ hr = connection->SendFile(bstr(localControlFile), bstr(remoteControlFile), CREATE_ALWAYS, NULL);
if (FAILED(hr)) {
if (hr == 0x8973190e) {
// This can happen during normal reinstallation, so continue
// All went well, upload the file
const QString remoteBinary = remoteBinaryPath + shaderFileName;
- hr = connection->SendFile(bstr(localBinary), bstr(remoteBinary), 2, 2, NULL);
+ hr = connection->SendFile(bstr(localBinary), bstr(remoteBinary), CREATE_ALWAYS, NULL);
if (FAILED(hr)) {
qCWarning(lcD3DService) << "Unable to upload binary:"
<< remoteBinary << coreConServer->formatError(hr);
{
virtual HRESULT __stdcall DeviceId(BSTR *deviceId) = 0;
virtual HRESULT __stdcall GetSystemInfo(SystemInfo *systemInfo) = 0;
- virtual HRESULT __stdcall SendFile(BSTR desktopFile, BSTR deviceFile, DWORD fileAction, DWORD creationFlags, BSTR customFileAction) = 0;
+ virtual HRESULT __stdcall SendFile(BSTR desktopFile, BSTR deviceFile, DWORD creationFlags, BSTR customFileAction) = 0;
virtual HRESULT __stdcall ReceiveFile(BSTR deviceFile, BSTR desktopFile, DWORD fileAction) = 0;
virtual HRESULT __stdcall RemoveFile(BSTR deviceFile) = 0;
virtual HRESULT __stdcall GetFileInfo(BSTR deviceFile, FileInfo *fileInfo) = 0;
qCDebug(lcWinRtRunner) << __FUNCTION__;
HRESULT hr = d->connection->SendFile(_bstr_t(wchar(localFile)), _bstr_t(wchar(deviceFile)),
- uint(2), uint(2), 0);
+ CREATE_ALWAYS, NULL);
if (FAILED(hr)) {
qCWarning(lcWinRtRunner) << "Unable to send the file." << coreConServer->formatError(hr);
return false;