On Tue, 6 Dec 2016 08:37:32 +0100 Hadrien Boizard <h.boizard at gmail.com> wrote: > DrawTextW(hdc, pszText, iCharCount, &rt, dwTextFlags|DT_CALCRECT); > + if(!pExtentRect) > + return E_POINTER; > *pExtentRect = rt; This needs a test.