From 6830167e8a2aac9fe1f621c9735aa9f590eba2b8 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Thu, 20 Aug 2015 14:40:59 +0000 Subject: [PATCH] VNC Viewer: fixed bug in create_palette. git-svn-id: svn://kolibrios.org@5752 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/network/vncc/trle.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/network/vncc/trle.inc b/programs/network/vncc/trle.inc index 947246f95f..d211ce3d8f 100644 --- a/programs/network/vncc/trle.inc +++ b/programs/network/vncc/trle.inc @@ -17,10 +17,10 @@ create_palette: push eax ecx edi movzx ecx, [palettesize] - lea ecx, [ecx*BYTES_PER_CPIXEL] + lea edi, [ecx*BYTES_PER_CPIXEL] @@: - lea eax, [esi+ecx] + lea eax, [esi+edi] cmp [datapointer], eax jae @f call read_data.more