mirror of
https://github.com/reactos/reactos.git
synced 2025-07-09 19:57:54 +00:00
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
This commit is contained in:
parent
1765aab70d
commit
3d647705b7
1 changed files with 3 additions and 4 deletions
|
@ -945,7 +945,7 @@ static struct inf_file *parse_file( HANDLE handle, const WCHAR *class, UINT *err
|
||||||
file->string_pos = file->strings;
|
file->string_pos = file->strings;
|
||||||
file->strings_section = -1;
|
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) );
|
WCHAR *new_buff = HeapAlloc( GetProcessHeap(), 0, size * sizeof(WCHAR) );
|
||||||
if (new_buff)
|
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 );
|
handle = CreateFileW( path, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, 0 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (handle != INVALID_HANDLE_VALUE)
|
if (handle != INVALID_HANDLE_VALUE)
|
||||||
{
|
{
|
||||||
file = parse_file( handle, class, error );
|
file = parse_file( handle, class, error );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue