Author: gschneider
Date: Sun Dec 7 12:04:56 2008
New Revision: 37913
URL: http://svn.reactos.org/svn/reactos?rev=37913&view=rev
Log:
- Fix drawing the status bar over the play cards, happened if no status bar was specified on sol startup (Win and ROS behavior); the bar has to be created to get the coords right - so we'll just hide it if we don't need it (like it's done when toggling status bar visibility in options)
- Additional cleanup by Roel Messiant, <roelmessiant AT gmail DOT com>:
- Replace the default options magic value by the proper constant
- Status bar height was being set wrong, but the system's constraint was fixing this behind the screens
- See bugs #3336 and #3820 for more info
Modified:
trunk/reactos/base/applications/games/solitaire/solitaire.cpp
Modified: trunk/reactos/base/applications/games/solitaire/solitaire.cpp
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/games/so…
==============================================================================
--- trunk/reactos/base/applications/games/solitaire/solitaire.cpp [iso-8859-1] (original)
+++ trunk/reactos/base/applications/games/solitaire/solitaire.cpp [iso-8859-1] Sun Dec 7 12:04:56 2008
@@ -20,7 +20,7 @@
TCHAR MsgAbout[128];
TCHAR MsgWin[128];
TCHAR MsgDeal[128];
-DWORD dwOptions = 8;
+DWORD dwOptions = OPTION_THREE_CARDS;
CardWindow SolWnd;
@@ -477,6 +477,13 @@
// Force the window to process WM_GETMINMAXINFO again
GetWindowRect(hwndStatus, &rcStatus);
nStatusHeight = rcStatus.bottom - rcStatus.top;
+
+ // Hide status bar if options say so
+ if (!(dwOptions & OPTION_SHOW_STATUS))
+ {
+ ShowWindow(hwndStatus, SW_HIDE);
+ }
+
SetWindowPos(hwnd, NULL, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOZORDER);
NewGame();
@@ -497,8 +504,7 @@
if (dwOptions & OPTION_SHOW_STATUS)
{
MoveWindow(SolWnd, 0, 0, nWidth, nHeight - nStatusHeight, TRUE);
- MoveWindow(hwndStatus, 0, nHeight - nStatusHeight, nWidth, nHeight, TRUE);
- SendMessage(hwndStatus, WM_SIZE, wParam, lParam);
+ MoveWindow(hwndStatus, 0, nHeight - nStatusHeight, nWidth, nStatusHeight, TRUE);
}
else
{
Author: tkreuzer
Date: Sat Dec 6 17:37:30 2008
New Revision: 37907
URL: http://svn.reactos.org/svn/reactos?rev=37907&view=rev
Log:
clear direction flag on interrupt
Modified:
branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/trap.S
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/trap.S
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/trap.S [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/ke/amd64/trap.S [iso-8859-1] Sat Dec 6 17:37:30 2008
@@ -129,6 +129,8 @@
// KTRAP_FRAME_LastExceptionFromRip
// KTRAP_FRAME_TrapFrame
+ /* Make sure the direction flag is cleared */
+ cld
.endm
.macro LEAVE_TRAP_FRAME
Author: fireball
Date: Sat Dec 6 13:35:54 2008
New Revision: 37905
URL: http://svn.reactos.org/svn/reactos?rev=37905&view=rev
Log:
- Fix a potential case of non-paged pool memory double freeing. Spotted by Michael Martin.
Modified:
trunk/reactos/ntoskrnl/ps/kill.c
Modified: trunk/reactos/ntoskrnl/ps/kill.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/kill.c?rev=379…
==============================================================================
--- trunk/reactos/ntoskrnl/ps/kill.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ps/kill.c [iso-8859-1] Sat Dec 6 13:35:54 2008
@@ -991,7 +991,6 @@
if (!KeInsertQueueApc(Apc, Apc, NULL, 2))
{
/* The APC was already in the queue, fail */
- ExFreePool(Apc);
Status = STATUS_UNSUCCESSFUL;
}
else