Commit 478592cd authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

winex11.drv: Handle if cursor not found (Cpverity).

parent 7d3e6643
...@@ -991,6 +991,10 @@ int CDECL X11DRV_AttachEventQueueToTablet(HWND hOwner) ...@@ -991,6 +991,10 @@ int CDECL X11DRV_AttachEventQueueToTablet(HWND hOwner)
for (loop=0; loop < num_devices; loop ++) for (loop=0; loop < num_devices; loop ++)
if (strcmp(devices[loop].name, cursorNameA) == 0) if (strcmp(devices[loop].name, cursorNameA) == 0)
target = &devices[loop]; 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); TRACE("Opening cursor %i id %i\n",cur_loop,(INT)target->id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment