diff options
author | nyamatongwe <unknown> | 2012-07-10 14:59:04 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2012-07-10 14:59:04 +1000 |
commit | 492d1e785e977393f157d5b0021884e7fe0837f1 (patch) | |
tree | 520472b51ac0001cf95ed30c5b2e5a70919a2868 /win32/ScintillaWin.cxx | |
parent | 2ff8dddb39f7ed4dfb51b8e7293a32a06c4d9cfe (diff) | |
download | scintilla-mirror-492d1e785e977393f157d5b0021884e7fe0837f1.tar.gz |
Avoid warnings from Visual Studio Code Analysis for unchecked values and a
loop with unclear termination.
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")); |