regedit: Print Latin-1 characters.

This makes spot-checking differences with Windows a little easier.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2018-07-02 18:06:54 +02:00 committed by Alexandre Julliard
parent efa6e6b9ef
commit 2831fe2f84
1 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@
#include "commctrl.h"
#include "wine/heap.h"
#include "wine/unicode.h"
#include "main.h"
/* spaces dividing hex and ASCII */
@ -94,7 +95,7 @@ static LPWSTR HexEdit_GetLineText(int offset, BYTE *pData, LONG cbData, LONG pad
for (i = 0; i < cbData; i++)
{
/* (C1_ALPHA|C1_BLANK|C1_PUNCT|C1_DIGIT|C1_LOWER|C1_UPPER) */
if (isprint(pData[offset + i]))
if (isprintW(pData[offset + i]))
lpszLine[6 + cbData * 3 + pad * 3 + DIV_SPACES + i] = pData[offset + i];
else
lpszLine[6 + cbData * 3 + pad * 3 + DIV_SPACES + i] = '.';