Create a branch for header work.
[reactos.git] / base / applications / mstsc / win32.c
index 49ce26d..56390e0 100644 (file)
@@ -13,9 +13,9 @@
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
 
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+   You should have received a copy of the GNU General Public License along
+   with this program; if not, write to the Free Software Foundation, Inc.,
+   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
 #include <winsock2.h> /* winsock2.h first */
@@ -520,11 +520,11 @@ handle_WM_SIZING(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
   height = (prect->bottom - prect->top) - (g_yoff + g_xoff);
   if (height < g_height || width < g_width)
   {
-    style = GetWindowLong(g_Wnd, GWL_STYLE);
+    style = GetWindowLongPtr(g_Wnd, GWL_STYLE);
     if (!(style & WS_HSCROLL))
     {
       style |= WS_HSCROLL | WS_VSCROLL;
-      SetWindowLong(g_Wnd, GWL_STYLE, style);
+      SetWindowLongPtr(g_Wnd, GWL_STYLE, style);
       g_xscroll = 0;
       g_yscroll = 0;
       SetScrollPos(g_Wnd, SB_HORZ, g_xscroll, 1);
@@ -533,12 +533,12 @@ handle_WM_SIZING(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
   }
   else if (height >= g_height && width >= g_width)
   {
-    style = GetWindowLong(g_Wnd, GWL_STYLE);
+    style = GetWindowLongPtr(g_Wnd, GWL_STYLE);
     if (style & WS_HSCROLL)
     {
       style &= ~WS_HSCROLL;
       style &= ~WS_VSCROLL;
-      SetWindowLong(g_Wnd, GWL_STYLE, style);
+      SetWindowLongPtr(g_Wnd, GWL_STYLE, style);
       g_xscroll = 0;
       g_yscroll = 0;
     }