Remove DWORD cast to fix i386 build

This commit is contained in:
kn 2022-07-20 11:18:43 +00:00
parent b394f13ce6
commit b676f04a8d
2 changed files with 16 additions and 1 deletions

View File

@ -2,7 +2,7 @@ COMMENT = DigiDoc4 GUI client for signing and encrypting documents
V = 4.2.11
DISTNAME = qdigidoc4_${V}.110-1804
REVISION = 3
REVISION = 4
EXTRACT_SUFX = .tar.xz
WRKDIST = ${WRKDIR}/qdigidoc4
PKGNAME = qdigidoc4-${V}

View File

@ -0,0 +1,15 @@
Remove DWORD cast to fix i386 build
https://github.com/open-eid/qt-common/pull/124
Index: common/QPCSC.cpp
--- common/QPCSC.cpp.orig
+++ common/QPCSC.cpp
@@ -513,7 +513,7 @@ bool QPCSCReader::updateState( quint32 msec )
if(!d->d->context)
return false;
d->state.dwCurrentState = d->state.dwEventState;
- switch(DWORD(SC(GetStatusChange, d->d->context, msec, &d->state, 1U))) //INFINITE
+ switch(SC(GetStatusChange, d->d->context, msec, &d->state, 1U))
{
case SCARD_S_SUCCESS: return true;
case SCARD_E_TIMEOUT: return msec == 0;