[Colors] Fix dedi crashes

This commit is contained in:
momo5502 2017-07-02 00:43:09 +02:00
parent 0c848a0be4
commit fea0cb9440

View File

@ -96,7 +96,7 @@ namespace Components
} }
else else
{ {
strncpy_s(buffer, size, name, size); strncpy_s(buffer, size, name, _TRUNCATE);
} }
} }
@ -105,7 +105,7 @@ namespace Components
__asm __asm
{ {
mov eax, [esp + 4h] // length mov eax, [esp + 4h] // length
sub eax, 1 //sub eax, 1
push eax push eax
push ecx // name push ecx // name