diff options
author | jaanttil <janne.anttila@digia.com> | 2011-12-12 12:14:15 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-07 06:39:40 (GMT) |
commit | 15f84271e8eb47a035ad572fb3db81171f354839 (patch) | |
tree | 310079d0a93a765228db8f109696f8231bf67a3d /tools | |
parent | 3e0017128ee9e5244b04c152c49c6287a8e7e873 (diff) | |
download | Qt-15f84271e8eb47a035ad572fb3db81171f354839.zip Qt-15f84271e8eb47a035ad572fb3db81171f354839.tar.gz Qt-15f84271e8eb47a035ad572fb3db81171f354839.tar.bz2 |
Fixed CeTest remotelib build for WinCE 5.
WinCE 5 does not have PPN_POWERBUTTONPRESSED but PPN_SUSPENDKEYPRESSED.
Newer WinCE version have both, but PPN_POWERBUTTONPRESSED is defined
to same as PPN_SUSPENKEYPRESSED, that's why it is safe to use
PPN_SUSPENKEYPRESSED in all WinCE versions.
Change-Id: Ida0604f86330c3e833a1ad41a88db55aa6a625fa
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qtestlib/wince/remotelib/commands.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qtestlib/wince/remotelib/commands.cpp b/tools/qtestlib/wince/remotelib/commands.cpp index 38bfade..d80aa05 100644 --- a/tools/qtestlib/wince/remotelib/commands.cpp +++ b/tools/qtestlib/wince/remotelib/commands.cpp @@ -202,7 +202,7 @@ int qRemotePowerButton(DWORD, BYTE*, DWORD*, BYTE**, IRAPIStream* stream) //PPN_OEMBASE Greater than or equal to 0x10000 //You can define higher values, such as 0x10001, 0x10002, and so on. // Reserved. Set dwData to zero (0). - returnValue = PowerPolicyNotify(PPN_POWERBUTTONPRESSED, 0); + returnValue = PowerPolicyNotify(PPN_SUSPENDKEYPRESSED, 0); if (S_OK != stream->Write(&returnValue, sizeof(returnValue), &bytesRead)) return -3; |