forked from KolibriOS/kolibrios
translate comments
I didn't notice that forgot
This commit is contained in:
@@ -131,12 +131,12 @@ void fill_buffer(void* ptr, size_t size, unsigned char pattern)
|
||||
bool check_buffer(void* ptr, size_t size, unsigned char pattern)
|
||||
{
|
||||
if (!ptr) {
|
||||
return false; // Нельзя проверить NULL
|
||||
return false;
|
||||
}
|
||||
unsigned char* byte_ptr = (unsigned char*)ptr;
|
||||
for (size_t i = 0; i < size; ++i) {
|
||||
if (byte_ptr[i] != pattern) {
|
||||
fprintf(stderr, "Ошибка: Байт %zu не соответствует паттерну. Ожидалось %02X, получено %02X\n",
|
||||
fprintf(stderr, "Error: Byte %zu does not match pattern. Expected %02X, got %02X\n",
|
||||
i, pattern, byte_ptr[i]);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user