forked from Mirrors/wine-wine
regedit: Import files using 'rb' mode.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>oldstable
parent
7912563f7f
commit
56959b1808
|
@ -334,10 +334,10 @@ static BOOL InitOpenFileName(HWND hWnd, OPENFILENAMEW *pofn)
|
||||||
|
|
||||||
static BOOL import_registry_filename(LPWSTR filename)
|
static BOOL import_registry_filename(LPWSTR filename)
|
||||||
{
|
{
|
||||||
static const WCHAR mode_r[] = {'r',0};
|
static const WCHAR rb_mode[] = {'r','b',0};
|
||||||
|
|
||||||
BOOL Success;
|
BOOL Success;
|
||||||
FILE* reg_file = _wfopen(filename, mode_r);
|
FILE* reg_file = _wfopen(filename, rb_mode);
|
||||||
|
|
||||||
if(!reg_file)
|
if(!reg_file)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in New Issue