From 2052b5bc3e1d2f1a6a7053dc6704740bb91bfaf0 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 17 Dec 2021 01:10:10 +0300
Subject: [PATCH] os2messagebox: use proper UCHAR* typecast in assignment, just
in case.
---
src/video/os2/SDL_os2messagebox.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/video/os2/SDL_os2messagebox.c b/src/video/os2/SDL_os2messagebox.c
index 5edde0495cf..5d1b54aa878 100644
--- a/src/video/os2/SDL_os2messagebox.c
+++ b/src/video/os2/SDL_os2messagebox.c
@@ -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->offText = pcDlgData - (PCHAR)pTemplate; /* Offset to the Id. */
- /* Write susyem icon ID into dialog template. */
- *pcDlgData = 0xFF; /* First byte is 0xFF - next 2 bytes is system pointer Id. */
+ /* Write system icon ID into dialog template. */
+ *((PBYTE)pcDlgData) = 0xFF; /* First byte is 0xFF, next 2 are system pointer Id. */
pcDlgData++;
*((PUSHORT)pcDlgData) = ((messageboxdata->flags & SDL_MESSAGEBOX_ERROR) != 0)?
SPTR_ICONERROR :