From 3d647705b72bf96c95eb8a5c0f34a3e6be97fb65 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Wed, 11 Feb 2004 12:40:01 +0000 Subject: [PATCH] Temp fix, because setupapi takes a wrong guess (RtlIsTextUnicode) whether the text is unicode and doesn't work. For now it's assumed all .inf-files are not-unicode. svn path=/trunk/; revision=8150 --- reactos/lib/setupapi/parser.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/reactos/lib/setupapi/parser.c b/reactos/lib/setupapi/parser.c index 87066aa678e..9d3f2c08cbc 100644 --- a/reactos/lib/setupapi/parser.c +++ b/reactos/lib/setupapi/parser.c @@ -568,7 +568,7 @@ static void close_current_line( struct parser *parser ) static const WCHAR *line_start_state( struct parser *parser, const WCHAR *pos ) { const WCHAR *p; - + for (p = pos; !is_eof( parser, p ); p++) { switch(*p) @@ -795,7 +795,7 @@ static const WCHAR *quotes_state( struct parser *parser, const WCHAR *pos ) static const WCHAR *leading_spaces_state( struct parser *parser, const WCHAR *pos ) { const WCHAR *p; - + for (p = pos; !is_eol( parser, p ); p++) { if (*p == '\\') @@ -945,7 +945,7 @@ static struct inf_file *parse_file( HANDLE handle, const WCHAR *class, UINT *err file->string_pos = file->strings; file->strings_section = -1; - if (!RtlIsTextUnicode( buffer, size, NULL )) + if (TRUE)//(!RtlIsTextUnicode( buffer, size, NULL )) // Fireball, 07 Feb 04, temp fix { WCHAR *new_buff = HeapAlloc( GetProcessHeap(), 0, size * sizeof(WCHAR) ); if (new_buff) @@ -1067,7 +1067,6 @@ HINF WINAPI SetupOpenInfFileW( PCWSTR name, PCWSTR class, DWORD style, UINT *err handle = CreateFileW( path, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, 0 ); } } - if (handle != INVALID_HANDLE_VALUE) { file = parse_file( handle, class, error );