dinput: Fix possible NULL deference.

This commit is contained in:
Vitaliy Margolen 2007-01-05 17:15:09 -07:00 committed by Alexandre Julliard
parent b223b021a5
commit 005bb87342
1 changed files with 1 additions and 1 deletions

View File

@ -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;