Author: mlytwyn
Date: Wed Aug 10 21:13:35 2016
New Revision: 40059
URL: http://svn.gna.org/viewcvs/gnustep?rev=40059&view=rev
Log:
Don't check nil cursor image for log and/or adding to array
Modified:
libs/back/branches/gnustep_testplant_branch/Source/win32/WIN32Server.m
Modified: libs/back/branches/gnustep_testplant_branch/Source/win32/WIN32Server.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/back/branches/gnustep_testplant_branch/Source/win32/WIN32Server.m?rev=40059&r1=40058&r2=40059&view=diff
==============================================================================
--- libs/back/branches/gnustep_testplant_branch/Source/win32/WIN32Server.m
(original)
+++ libs/back/branches/gnustep_testplant_branch/Source/win32/WIN32Server.m
Wed Aug 10 21:13:35 2016
@@ -2790,18 +2790,20 @@
NSImage *cursorImage = [[NSCursor currentCursor] image];
// has the cursor already failed?
- for (NSImage *item in listOfCursorsFailed) {
- if (cursorImage == item) {
- cursorFound = TRUE;
- break;
- }
- }
-
- // log this cursor fail entry to avoid multiple logs
- if (!cursorFound) {
- [listOfCursorsFailed addObject:cursorImage];
- NSLog(@"GetCursorInfo failed with %d",
GetLastError());
- }
+ if (cursorImage != nil) {
+ for (NSImage *item in listOfCursorsFailed) {
+ if (cursorImage == item) {
+ cursorFound = TRUE;
+ break;
+ }
+ }
+
+ // log this cursor fail entry to avoid multiple logs
+ if (!cursorFound) {
+ [listOfCursorsFailed addObject:cursorImage];
+ NSLog(@"GetCursorInfo failed with %d", GetLastError());
+ }
+ }
}
return NSZeroPoint;
}
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs