Author: fireball
Date: Thu Feb 10 11:18:00 2011
New Revision: 50646
URL:
http://svn.reactos.org/svn/reactos?rev=50646&view=rev
Log:
- Edijs: Properly load window size and position.
See issue #5872 for more details.
Modified:
trunk/reactos/base/applications/notepad/settings.c
Modified: trunk/reactos/base/applications/notepad/settings.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/notepad/…
==============================================================================
--- trunk/reactos/base/applications/notepad/settings.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/notepad/settings.c [iso-8859-1] Thu Feb 10 11:18:00
2011
@@ -134,10 +134,10 @@
QueryBool(hKey, _T("fWrap"), &Globals.bWrapLongLines);
QueryBool(hKey, _T("fStatusBar"), &Globals.bShowStatusBar);
- QueryByte(hKey, _T("iWindowPosX"),
(LPBYTE)&Globals.main_rect.left);
- QueryByte(hKey, _T("iWindowPosX"),
(LPBYTE)&Globals.main_rect.top);
- QueryByte(hKey, _T("iWindowPosDX"), (LPBYTE)&dx);
- QueryByte(hKey, _T("iWindowPosDY"), (LPBYTE)&dy);
+ QueryDword(hKey, _T("iWindowPosX"),
(DWORD*)&Globals.main_rect.left);
+ QueryDword(hKey, _T("iWindowPosY"),
(DWORD*)&Globals.main_rect.top);
+ QueryDword(hKey, _T("iWindowPosDX"), (DWORD*)&dx);
+ QueryDword(hKey, _T("iWindowPosDY"), (DWORD*)&dy);
Globals.main_rect.right = Globals.main_rect.left + dx;
Globals.main_rect.bottom = Globals.main_rect.top + dy;