winrt: Align error code handling with WinCE
Both specify 87 (invalid parameter) as error code for non existing shared memory. Change-Id: I02b02da106e9e4e574a21359c25bc2a03e385a7c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>bb10
parent
935ddbd3a2
commit
44c6c3ae27
|
|
@ -58,7 +58,7 @@ void QSharedMemoryPrivate::setErrorString(QLatin1String function)
|
|||
errorString = QSharedMemory::tr("%1: already exists").arg(function);
|
||||
break;
|
||||
case ERROR_FILE_NOT_FOUND:
|
||||
#ifdef Q_OS_WINCE
|
||||
#if defined(Q_OS_WINCE) || (defined(Q_OS_WINRT) && _MSC_VER < 1900)
|
||||
// This happens on CE only if no file is present as CreateFileMappingW
|
||||
// bails out with this error code
|
||||
case ERROR_INVALID_PARAMETER:
|
||||
|
|
|
|||
Loading…
Reference in New Issue