Skip to content
Snippets Groups Projects
Commit 088948e0 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

<nelgin> Wont crash if it wont build.

parent fcffcae3
No related branches found
No related tags found
No related merge requests found
Pipeline #6900 passed
......@@ -948,7 +948,7 @@ int win32_setpalette(uint32_t entry, uint16_t r, uint16_t g, uint16_t b)
if (mode & ENABLE_VIRTUAL_TERMINAL_PROCESSING) {
int slen;
char seq[30];
slen = snprintf(seq, sizeof(seq), "\x1b]4;%d;rgb:%02hhx/%02hhx/%02hhx\x1b\\", i, r >> 8, g >> 8, b >> 8);
slen = snprintf(seq, sizeof(seq), "\x1b]4;%d;rgb:%02hhx/%02hhx/%02hhx\x1b\\", entry, r >> 8, g >> 8, b >> 8);
if (slen > -1) {
if (WriteConsole(h, seq, slen, NULL, NULL))
ret = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment