QProcess: Fix compilation with MinGW
newer mingw-w64 headers do not support swprintf(wchar_t*,wchar_t*, ..) any more. Change-Id: I2fc1fb51ba8d5237149697f77a91abd6469ebb09 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
24013d8a87
commit
320b16110f
@ -82,7 +82,8 @@ static void qt_create_pipe(Q_PIPE *pipe, bool isInputPipe)
|
||||
forever {
|
||||
// ### The user must make sure to call qsrand() to make the pipe names less predictable.
|
||||
// ### Replace the call to qrand() with a secure version, once we have it in Qt.
|
||||
swprintf(pipeName, L"\\\\.\\pipe\\qt-%X", qrand());
|
||||
swprintf(pipeName, sizeof(pipeName) / sizeof(pipeName[0]),
|
||||
L"\\\\.\\pipe\\qt-%X", qrand());
|
||||
|
||||
DWORD dwPipeFlags = PIPE_TYPE_BYTE | PIPE_WAIT;
|
||||
if (QSysInfo::windowsVersion() >= QSysInfo::WV_VISTA)
|
||||
|
Loading…
Reference in New Issue
Block a user