Author: jimtabor
Date: Tue May 3 02:01:59 2011
New Revision: 51565
URL: http://svn.reactos.org/svn/reactos?rev=51565&view=rev
Log:
- Turn on User32 msg test_menu_messages. The Alt-E/F keys work now. This is what the test is for. WM_SYSCHAR is translated but not being passed back to Alt-Space and friends in defwnd.c. These applications need to be reexamined to clarify this issue. Notepad accelerator keys work now but Alt-E/F/Space etc do not. Referencing base bug 1091.
Modified:
trunk/rostests/winetests/user32/msg.c
Modified: trunk/rostests/winetests/user32/msg.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/user32/msg.c?re…
==============================================================================
--- trunk/rostests/winetests/user32/msg.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/user32/msg.c [iso-8859-1] Tue May 3 02:01:59 2011
@@ -12593,10 +12593,7 @@
test_dialog_messages();
test_nullCallback();
test_dbcs_wm_char();
- if(!winetest_interactive)
- skip("skipping test_menu_messages, that hangs on reactos\n");
- else
- test_menu_messages();
+ test_menu_messages();
test_paintingloop();
test_defwinproc();
test_clipboard_viewers();
Author: rharabien
Date: Mon May 2 16:45:41 2011
New Revision: 51556
URL: http://svn.reactos.org/svn/reactos?rev=51556&view=rev
Log:
[TASKMGR]
* Don't compare NTSTATUS to NO_ERROR. Use NT_SUCCESS macro instead. Spotted by dmex.
Modified:
trunk/reactos/base/applications/taskmgr/perfdata.c
Modified: trunk/reactos/base/applications/taskmgr/perfdata.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/perfdata.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/perfdata.c [iso-8859-1] Mon May 2 16:45:41 2011
@@ -60,7 +60,7 @@
* Get number of processors in the system
*/
status = NtQuerySystemInformation(SystemBasicInformation, &SystemBasicInfo, sizeof(SystemBasicInfo), NULL);
- if (status != NO_ERROR)
+ if (!NT_SUCCESS(status))
return FALSE;
/*
@@ -180,24 +180,24 @@
/* Get new system time */
status = NtQuerySystemInformation(SystemTimeOfDayInformation, &SysTimeInfo, sizeof(SysTimeInfo), 0);
- if (status != NO_ERROR)
+ if (!NT_SUCCESS(status))
return;
/* Get new CPU's idle time */
status = NtQuerySystemInformation(SystemPerformanceInformation, &SysPerfInfo, sizeof(SysPerfInfo), NULL);
- if (status != NO_ERROR)
+ if (!NT_SUCCESS(status))
return;
/* Get system cache information */
status = NtQuerySystemInformation(SystemFileCacheInformation, &SysCacheInfo, sizeof(SysCacheInfo), NULL);
- if (status != NO_ERROR)
+ if (!NT_SUCCESS(status))
return;
/* Get processor time information */
SysProcessorTimeInfo = (PSYSTEM_PROCESSOR_PERFORMANCE_INFORMATION)HeapAlloc(GetProcessHeap(), 0, sizeof(SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION) * SystemBasicInfo.NumberOfProcessors);
status = NtQuerySystemInformation(SystemProcessorPerformanceInformation, SysProcessorTimeInfo, sizeof(SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION) * SystemBasicInfo.NumberOfProcessors, &ulSize);
- if (status != NO_ERROR)
+ if (!NT_SUCCESS(status))
{
if (SysProcessorTimeInfo != NULL)
HeapFree(GetProcessHeap(), 0, SysProcessorTimeInfo);