Browse Source

Use smaller, stable, int for history index

The size of size_t depends on the architecture, so we need to have
different conversion to and from strings. But we don't really need that
range, so avoid the issue by using a standard integer size.
pull/1645/head
Pierre Ossman 10 months ago
parent
commit
fad215db38
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      vncviewer/parameters.cxx

+ 2
- 2
vncviewer/parameters.cxx View File

if (res != ERROR_SUCCESS) if (res != ERROR_SUCCESS)
throw rdr::SystemException(_("Failed to create registry key"), res); throw rdr::SystemException(_("Failed to create registry key"), res);


size_t index = 0;
unsigned index = 0;
assert(SERVER_HISTORY_SIZE < 100); assert(SERVER_HISTORY_SIZE < 100);
char indexString[3]; char indexString[3];


throw rdr::SystemException(_("Failed to open registry key"), res); throw rdr::SystemException(_("Failed to open registry key"), res);
} }


size_t index;
unsigned index;
const DWORD buffersize = 256; const DWORD buffersize = 256;
char indexString[3]; char indexString[3];



Loading…
Cancel
Save