mirror of
https://github.com/reactos/wine.git
synced 2025-01-22 03:49:02 +00:00
winex11.drv: Handle if cursor not found (Cpverity).
This commit is contained in:
parent
7d3e664312
commit
478592cd3d
@ -991,6 +991,10 @@ int CDECL X11DRV_AttachEventQueueToTablet(HWND hOwner)
|
||||
for (loop=0; loop < num_devices; loop ++)
|
||||
if (strcmp(devices[loop].name, cursorNameA) == 0)
|
||||
target = &devices[loop];
|
||||
if (!target) {
|
||||
WARN("Cursor Name %s not found in list of targets.\n", cursorNameA);
|
||||
continue;
|
||||
}
|
||||
|
||||
TRACE("Opening cursor %i id %i\n",cur_loop,(INT)target->id);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user