mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 11:51:27 +00:00
Don't check nil cursor image for log and/or adding to array
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/branches/gnustep_testplant_branch@40059 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cec559f512
commit
da5ff641d3
1 changed files with 14 additions and 12 deletions
|
@ -2790,6 +2790,7 @@ LRESULT CALLBACK windowEnumCallback(HWND hwnd, LPARAM lParam)
|
|||
NSImage *cursorImage = [[NSCursor currentCursor] image];
|
||||
|
||||
// has the cursor already failed?
|
||||
if (cursorImage != nil) {
|
||||
for (NSImage *item in listOfCursorsFailed) {
|
||||
if (cursorImage == item) {
|
||||
cursorFound = TRUE;
|
||||
|
@ -2801,6 +2802,7 @@ LRESULT CALLBACK windowEnumCallback(HWND hwnd, LPARAM lParam)
|
|||
if (!cursorFound) {
|
||||
[listOfCursorsFailed addObject:cursorImage];
|
||||
NSLog(@"GetCursorInfo failed with %d", GetLastError());
|
||||
}
|
||||
}
|
||||
}
|
||||
return NSZeroPoint;
|
||||
|
|
Loading…
Reference in a new issue