diff options
Diffstat (limited to 'win32/ScintillaWin.cxx')
| -rw-r--r-- | win32/ScintillaWin.cxx | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index c2727607b..80abc69d9 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -385,7 +385,8 @@ void ScintillaWin::Initialise() {  	// Find TrackMouseEvent which is available on Windows > 95  	HMODULE user32 = ::GetModuleHandle(TEXT("user32.dll")); -	TrackMouseEventFn = (TrackMouseEventSig)::GetProcAddress(user32, "TrackMouseEvent"); +	if (user32) +		TrackMouseEventFn = (TrackMouseEventSig)::GetProcAddress(user32, "TrackMouseEvent");  	if (TrackMouseEventFn == NULL) {  		// Windows 95 has an emulation in comctl32.dll:_TrackMouseEvent  		HMODULE commctrl32 = ::LoadLibrary(TEXT("comctl32.dll")); | 
