Commit 005bb873 authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

dinput: Fix possible NULL deference.

parent b223b021
......@@ -1041,7 +1041,7 @@ HRESULT WINAPI IDirectInputDevice2WImpl_GetObjectInfo(
odf = dataformat_to_odf(This->data_format.wine_df, idx);
memset(pdidoi, 0, pdidoi->dwSize);
pdidoi->dwSize = dwSize;
pdidoi->guidType = *odf->pguid;
if (odf->pguid) pdidoi->guidType = *odf->pguid;
pdidoi->dwOfs = This->data_format.offsets ? This->data_format.offsets[idx] : odf->dwOfs;
pdidoi->dwType = odf->dwType;
pdidoi->dwFlags = odf->dwFlags;
......
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