~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/gallium/frontends/nine/iunknown.c

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
212
212
    /* data consists of a header and the actual data. avoiding 2 mallocs */
213
213
    header = CALLOC_VARIANT_LENGTH_STRUCT(pheader, SizeOfData);
214
214
    if (!header) { DBG("Returning E_OUTOFMEMORY\n"); return E_OUTOFMEMORY; }
215
 
    header->unknown = (Flags & D3DSPD_IUNKNOWN) ? TRUE : FALSE;
 
215
    header->unknown = (Flags & D3DSPD_IUNKNOWN) ? true : false;
216
216
 
217
217
    /* if the refguid already exists, delete it */
218
218
    NineUnknown_FreePrivateData(This, refguid);