Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
4d794646
Commit
4d794646
authored
Apr 26, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
May 05, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Fix parsing of UCS-16 files.
Fix parsing of UCS-16 files prefixed with the Unicode BOM. Based on a patch by Hervé Poussineau.
parent
32d39ea6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
parser.c
dlls/setupapi/parser.c
+8
-1
No files found.
dlls/setupapi/parser.c
View file @
4d794646
...
...
@@ -967,7 +967,14 @@ static struct inf_file *parse_file( HANDLE handle, const WCHAR *class, UINT *err
HeapFree
(
GetProcessHeap
(),
0
,
new_buff
);
}
}
else
err
=
parse_buffer
(
file
,
buffer
,
(
WCHAR
*
)((
char
*
)
buffer
+
size
),
error_line
);
else
{
WCHAR
*
new_buff
=
(
WCHAR
*
)
buffer
;
/* UCS-16 files should start with the Unicode BOM; we should skip it */
if
(
*
new_buff
==
0xfeff
)
new_buff
++
;
err
=
parse_buffer
(
file
,
new_buff
,
(
WCHAR
*
)((
char
*
)
buffer
+
size
),
error_line
);
}
if
(
!
err
)
/* now check signature */
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment