os2messagebox: use proper UCHAR* typecast in assignment, just in case.

This commit is contained in:
Ozkan Sezer 2021-12-17 01:10:10 +03:00
parent ca18bf11ee
commit 2052b5bc3e

View file

@ -377,8 +377,8 @@ static HWND _makeDlg(const SDL_MessageBoxData *messageboxdata)
pDlgItem->cchText = 3; /* 0xFF, low byte of the icon Id, high byte of icon Id. */ pDlgItem->cchText = 3; /* 0xFF, low byte of the icon Id, high byte of icon Id. */
pDlgItem->offText = pcDlgData - (PCHAR)pTemplate; /* Offset to the Id. */ pDlgItem->offText = pcDlgData - (PCHAR)pTemplate; /* Offset to the Id. */
/* Write susyem icon ID into dialog template. */ /* Write system icon ID into dialog template. */
*pcDlgData = 0xFF; /* First byte is 0xFF - next 2 bytes is system pointer Id. */ *((PBYTE)pcDlgData) = 0xFF; /* First byte is 0xFF, next 2 are system pointer Id. */
pcDlgData++; pcDlgData++;
*((PUSHORT)pcDlgData) = ((messageboxdata->flags & SDL_MESSAGEBOX_ERROR) != 0)? *((PUSHORT)pcDlgData) = ((messageboxdata->flags & SDL_MESSAGEBOX_ERROR) != 0)?
SPTR_ICONERROR : SPTR_ICONERROR :