diff options
Diffstat (limited to 'win32/PlatWin.cxx')
| -rw-r--r-- | win32/PlatWin.cxx | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 472c8b9a2..291d40fd9 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -839,7 +839,11 @@ void Window::SetCursor(Cursor curs) {  				hinstPlatformRes = ::GetModuleHandle("SciLexer");  			if (!hinstPlatformRes)  				hinstPlatformRes = ::GetModuleHandle(NULL); -			::SetCursor(::LoadCursor(hinstPlatformRes, MAKEINTRESOURCE(IDC_MARGIN))); +			HCURSOR hcursor = ::LoadCursor(hinstPlatformRes, MAKEINTRESOURCE(IDC_MARGIN)); +			if (hcursor) +				::SetCursor(hcursor); +			else +				::SetCursor(::LoadCursor(NULL,IDC_ARROW));  		}  		break;  	case cursorArrow: | 
