Mike McCormack : wordpad: Use GetWindowLongPtr to get the HINSTANCE.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed May 31 05:31:33 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 74a03d254152ecba2b8697c52273eb866685b7e9
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=74a03d254152ecba2b8697c52273eb866685b7e9
Author: Mike McCormack <mike at codeweavers.com>
Date: Wed May 31 16:18:01 2006 +0900
wordpad: Use GetWindowLongPtr to get the HINSTANCE.
---
programs/wordpad/wordpad.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c
index 8022ef6..7392b9c 100644
--- a/programs/wordpad/wordpad.c
+++ b/programs/wordpad/wordpad.c
@@ -74,7 +74,7 @@ void AddSeparator(HWND hwndToolBar)
static LRESULT OnCreate( HWND hWnd, WPARAM wParam, LPARAM lParam)
{
HWND hEditorWnd, hToolBarWnd, hReBarWnd;
- HINSTANCE hInstance = (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE);
+ HINSTANCE hInstance = (HINSTANCE)GetWindowLongPtr(hWnd, GWLP_HINSTANCE);
HANDLE hDLL;
TBADDBITMAP ab;
int nStdBitmaps = 0;
More information about the wine-cvs
mailing list