Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
63ca94c4
Commit
63ca94c4
authored
Nov 09, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Fixed buffer overrun in get_registry_locale_info.
parent
6987a4b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
locale.c
dlls/kernel32/locale.c
+10
-7
No files found.
dlls/kernel32/locale.c
View file @
63ca94c4
...
...
@@ -804,7 +804,6 @@ static INT get_registry_locale_info( LPCWSTR value, LPWSTR buffer, INT len )
}
status
=
NtQueryValueKey
(
hkey
,
&
nameW
,
KeyValuePartialInformation
,
info
,
size
,
&
size
);
if
(
status
==
STATUS_BUFFER_OVERFLOW
&&
!
buffer
)
status
=
0
;
if
(
!
status
)
{
...
...
@@ -825,14 +824,18 @@ static INT get_registry_locale_info( LPCWSTR value, LPWSTR buffer, INT len )
buffer
[
ret
-
1
]
=
0
;
}
}
else
if
(
status
==
STATUS_BUFFER_OVERFLOW
&&
!
buffer
)
{
ret
=
(
size
-
info_size
)
/
sizeof
(
WCHAR
)
+
1
;
}
else
if
(
status
==
STATUS_OBJECT_NAME_NOT_FOUND
)
{
ret
=
-
1
;
}
else
{
if
(
status
==
STATUS_OBJECT_NAME_NOT_FOUND
)
ret
=
-
1
;
else
{
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
ret
=
0
;
}
SetLastError
(
RtlNtStatusToDosError
(
status
)
);
ret
=
0
;
}
NtClose
(
hkey
);
HeapFree
(
GetProcessHeap
(),
0
,
info
);
...
...
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