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
4d6b7475
Commit
4d6b7475
authored
Dec 14, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Dec 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Add a define for UNICODE_STRING_MAX_CHARS.
parent
9db754fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
environ.c
dlls/kernel32/environ.c
+2
-2
winnt.h
include/winnt.h
+2
-0
No files found.
dlls/kernel32/environ.c
View file @
4d6b7475
...
...
@@ -364,8 +364,8 @@ DWORD WINAPI ExpandEnvironmentStringsW( LPCWSTR src, LPWSTR dst, DWORD len )
RtlInitUnicodeString
(
&
us_src
,
src
);
/* make sure we don't overflow the maximum UNICODE_STRING size */
if
(
len
>
0x7fff
)
len
=
0x7fff
;
if
(
len
>
UNICODE_STRING_MAX_CHARS
)
len
=
UNICODE_STRING_MAX_CHARS
;
us_dst
.
Length
=
0
;
us_dst
.
MaximumLength
=
len
*
sizeof
(
WCHAR
);
...
...
include/winnt.h
View file @
4d6b7475
...
...
@@ -617,6 +617,8 @@ typedef struct _MEMORY_BASIC_INFORMATION
#define MAXWORD 0xffff
#define MAXDWORD 0xffffffff
#define UNICODE_STRING_MAX_CHARS 32767
#define FIELD_OFFSET(type, field) \
((LONG)(INT_PTR)&(((type *)0)->field))
...
...
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