mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-15 00:07:16 +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…
Reference in a new issue