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
1d40bf01
Commit
1d40bf01
authored
May 30, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: propsheet: Fixed buffer sizes for LoadStringW.
parent
144a5353
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
propsheet.c
dlls/comctl32/propsheet.c
+12
-12
No files found.
dlls/comctl32/propsheet.c
View file @
1d40bf01
...
...
@@ -2908,8 +2908,8 @@ HPROPSHEETPAGE WINAPI CreatePropertySheetPageA(
else
{
UINT
id
=
LOWORD
(
ppsp
->
pszTitle
);
int
len
=
LoadStringW
(
ppsp
->
hInstance
,
id
,
NULL
,
0
)
+
sizeof
(
WCHAR
)
;
ppsp
->
pszTitle
=
Alloc
(
len
);
int
len
=
LoadStringW
(
ppsp
->
hInstance
,
id
,
NULL
,
0
)
+
1
;
ppsp
->
pszTitle
=
Alloc
(
len
*
sizeof
(
WCHAR
)
);
LoadStringW
(
ppsp
->
hInstance
,
id
,
(
LPWSTR
)
ppsp
->
pszTitle
,
len
);
}
}
...
...
@@ -2926,8 +2926,8 @@ HPROPSHEETPAGE WINAPI CreatePropertySheetPageA(
else
{
UINT
id
=
LOWORD
(
ppsp
->
pszHeaderTitle
);
int
len
=
LoadStringW
(
ppsp
->
hInstance
,
id
,
NULL
,
0
)
+
sizeof
(
WCHAR
)
;
ppsp
->
pszHeaderTitle
=
Alloc
(
len
);
int
len
=
LoadStringW
(
ppsp
->
hInstance
,
id
,
NULL
,
0
)
+
1
;
ppsp
->
pszHeaderTitle
=
Alloc
(
len
*
sizeof
(
WCHAR
)
);
LoadStringW
(
ppsp
->
hInstance
,
id
,
(
LPWSTR
)
ppsp
->
pszHeaderTitle
,
len
);
}
}
...
...
@@ -2941,8 +2941,8 @@ HPROPSHEETPAGE WINAPI CreatePropertySheetPageA(
else
{
UINT
id
=
LOWORD
(
ppsp
->
pszHeaderSubTitle
);
int
len
=
LoadStringW
(
ppsp
->
hInstance
,
id
,
NULL
,
0
)
+
sizeof
(
WCHAR
)
;
ppsp
->
pszHeaderSubTitle
=
Alloc
(
len
);
int
len
=
LoadStringW
(
ppsp
->
hInstance
,
id
,
NULL
,
0
)
+
1
;
ppsp
->
pszHeaderSubTitle
=
Alloc
(
len
*
sizeof
(
WCHAR
)
);
LoadStringW
(
ppsp
->
hInstance
,
id
,
(
LPWSTR
)
ppsp
->
pszHeaderSubTitle
,
len
);
}
}
...
...
@@ -2996,8 +2996,8 @@ HPROPSHEETPAGE WINAPI CreatePropertySheetPageW(LPCPROPSHEETPAGEW lpPropSheetPage
else
{
UINT
id
=
LOWORD
(
ppsp
->
pszTitle
);
int
len
=
LoadStringW
(
ppsp
->
hInstance
,
id
,
NULL
,
0
)
+
sizeof
(
WCHAR
)
;
ppsp
->
pszTitle
=
Alloc
(
len
);
int
len
=
LoadStringW
(
ppsp
->
hInstance
,
id
,
NULL
,
0
)
+
1
;
ppsp
->
pszTitle
=
Alloc
(
len
*
sizeof
(
WCHAR
)
);
LoadStringW
(
ppsp
->
hInstance
,
id
,
(
LPWSTR
)
ppsp
->
pszTitle
,
len
);
}
}
...
...
@@ -3018,8 +3018,8 @@ HPROPSHEETPAGE WINAPI CreatePropertySheetPageW(LPCPROPSHEETPAGEW lpPropSheetPage
else
{
UINT
id
=
LOWORD
(
ppsp
->
pszHeaderTitle
);
int
len
=
LoadStringW
(
ppsp
->
hInstance
,
id
,
NULL
,
0
)
+
sizeof
(
WCHAR
)
;
ppsp
->
pszHeaderTitle
=
Alloc
(
len
);
int
len
=
LoadStringW
(
ppsp
->
hInstance
,
id
,
NULL
,
0
)
+
1
;
ppsp
->
pszHeaderTitle
=
Alloc
(
len
*
sizeof
(
WCHAR
)
);
LoadStringW
(
ppsp
->
hInstance
,
id
,
(
LPWSTR
)
ppsp
->
pszHeaderTitle
,
len
);
}
}
...
...
@@ -3037,8 +3037,8 @@ HPROPSHEETPAGE WINAPI CreatePropertySheetPageW(LPCPROPSHEETPAGEW lpPropSheetPage
else
{
UINT
id
=
LOWORD
(
ppsp
->
pszHeaderSubTitle
);
int
len
=
LoadStringW
(
ppsp
->
hInstance
,
id
,
NULL
,
0
)
+
sizeof
(
WCHAR
)
;
ppsp
->
pszHeaderSubTitle
=
Alloc
(
len
);
int
len
=
LoadStringW
(
ppsp
->
hInstance
,
id
,
NULL
,
0
)
+
1
;
ppsp
->
pszHeaderSubTitle
=
Alloc
(
len
*
sizeof
(
WCHAR
)
);
LoadStringW
(
ppsp
->
hInstance
,
id
,
(
LPWSTR
)
ppsp
->
pszHeaderSubTitle
,
len
);
}
}
...
...
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