diff options
author | Sergei Lopatin <magist3r@gmail.com> | 2012-10-26 02:11:14 +0600 |
---|---|---|
committer | Karsten Heimrich <karsten.heimrich@digia.com> | 2012-10-26 11:00:16 +0200 |
commit | b30e944a0bb947053e1bb2432ddb3cf59c77fe1a (patch) | |
tree | 2aaf0bf2f33fca1d7868437cc057f76decf922b3 /src/libs/installer/link.cpp | |
parent | 2a73db7e34bd2a9f61455aad73df68294dd1b22c (diff) |
MinGW: fix casting wchar_t* from QString
Change-Id: I89e5ae0dd83862077c6a0fa3e20f159c40213af7
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
Diffstat (limited to 'src/libs/installer/link.cpp')
-rw-r--r-- | src/libs/installer/link.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/installer/link.cpp b/src/libs/installer/link.cpp index 31f6270f4..6210480b4 100644 --- a/src/libs/installer/link.cpp +++ b/src/libs/installer/link.cpp @@ -81,7 +81,7 @@ public: : m_dirHandle(INVALID_HANDLE_VALUE) { QString normalizedPath = QString(path).replace(QLatin1Char('/'), QLatin1Char('\\')); - m_dirHandle = CreateFile(normalizedPath.utf16(), GENERIC_READ | GENERIC_WRITE, 0, 0, + m_dirHandle = CreateFile((wchar_t*)normalizedPath.utf16(), GENERIC_READ | GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_FLAG_OPEN_REPARSE_POINT | FILE_FLAG_BACKUP_SEMANTICS, 0); if (m_dirHandle == INVALID_HANDLE_VALUE) { @@ -149,7 +149,7 @@ Link createJunction(const QString &linkPath, const QString &targetPath) QString normalizedTargetPath = QString(targetPath).replace(QLatin1Char('/'), QLatin1Char('\\')); //now we add the real absolute path - StringCchCat(szDestDir, 1024, normalizedTargetPath.utf16()); + StringCchCat(szDestDir, 1024, (wchar_t*)normalizedTargetPath.utf16()); // Allocates a block of memory for an array of num elements(1) and initializes all its bits to zero. _REPARSE_DATA_BUFFER* reparseStructData = (_REPARSE_DATA_BUFFER*)calloc(1, |