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
525b5f4e
Commit
525b5f4e
authored
Mar 16, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comcat: Declare some variables static and const.
parent
427a7638
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
information.c
dlls/comcat/information.c
+14
-14
register.c
dlls/comcat/register.c
+1
-1
No files found.
dlls/comcat/information.c
View file @
525b5f4e
...
...
@@ -433,9 +433,9 @@ static HRESULT WINAPI COMCAT_IEnumCATEGORYINFO_Clone(
IEnumCATEGORYINFO
**
ppenum
)
{
IEnumCATEGORYINFOImpl
*
This
=
(
IEnumCATEGORYINFOImpl
*
)
iface
;
WCHAR
keyname
[
21
]
=
{
'C'
,
'o'
,
'm'
,
'p'
,
'o'
,
'n'
,
'e'
,
'n'
,
't'
,
' '
,
'C'
,
'a'
,
't'
,
'e'
,
'g'
,
'o'
,
'r'
,
'i'
,
'e'
,
's'
,
0
};
static
const
WCHAR
keyname
[
]
=
{
'C'
,
'o'
,
'm'
,
'p'
,
'o'
,
'n'
,
'e'
,
'n'
,
't'
,
' '
,
'C'
,
'a'
,
't'
,
'e'
,
'g'
,
'o'
,
'r'
,
'i'
,
'e'
,
's'
,
0
};
IEnumCATEGORYINFOImpl
*
new_this
;
TRACE
(
"
\n
"
);
...
...
@@ -473,9 +473,9 @@ static LPENUMCATEGORYINFO COMCAT_IEnumCATEGORYINFO_Construct(LCID lcid)
This
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IEnumCATEGORYINFOImpl
));
if
(
This
)
{
WCHAR
keyname
[
21
]
=
{
'C'
,
'o'
,
'm'
,
'p'
,
'o'
,
'n'
,
'e'
,
'n'
,
't'
,
' '
,
'C'
,
'a'
,
't'
,
'e'
,
'g'
,
'o'
,
'r'
,
'i'
,
'e'
,
's'
,
0
};
static
const
WCHAR
keyname
[
]
=
{
'C'
,
'o'
,
'm'
,
'p'
,
'o'
,
'n'
,
'e'
,
'n'
,
't'
,
' '
,
'C'
,
'a'
,
't'
,
'e'
,
'g'
,
'o'
,
'r'
,
'i'
,
'e'
,
's'
,
0
};
This
->
lpVtbl
=
&
COMCAT_IEnumCATEGORYINFO_Vtbl
;
This
->
lcid
=
lcid
;
...
...
@@ -490,7 +490,7 @@ static LPENUMCATEGORYINFO COMCAT_IEnumCATEGORYINFO_Construct(LCID lcid)
static
HRESULT
COMCAT_GetCategoryDesc
(
HKEY
key
,
LCID
lcid
,
PWCHAR
pszDesc
,
ULONG
buf_wchars
)
{
WCHAR
fmt
[
4
]
=
{
'%'
,
'l'
,
'X'
,
0
};
static
const
WCHAR
fmt
[
]
=
{
'%'
,
'l'
,
'X'
,
0
};
WCHAR
valname
[
5
];
HRESULT
res
;
DWORD
type
,
size
=
(
buf_wchars
-
1
)
*
sizeof
(
WCHAR
);
...
...
@@ -549,12 +549,12 @@ static HRESULT COMCAT_IsClassOfCategories(
HKEY
key
,
struct
class_categories
const
*
categories
)
{
WCHAR
impl_keyname
[
23
]
=
{
'I'
,
'm'
,
'p'
,
'l'
,
'e'
,
'm'
,
'e'
,
'n'
,
't'
,
'e'
,
'd'
,
' '
,
'C'
,
'a'
,
't'
,
'e'
,
'g'
,
'o'
,
'r'
,
'i'
,
'e'
,
's'
,
0
};
WCHAR
req_keyname
[
20
]
=
{
'R'
,
'e'
,
'q'
,
'u'
,
'i'
,
'r'
,
'e'
,
'd'
,
' '
,
'C'
,
'a'
,
't'
,
'e'
,
'g'
,
'o'
,
'r'
,
'i'
,
'e'
,
's'
,
0
};
static
const
WCHAR
impl_keyname
[
]
=
{
'I'
,
'm'
,
'p'
,
'l'
,
'e'
,
'm'
,
'e'
,
'n'
,
't'
,
'e'
,
'd'
,
' '
,
'C'
,
'a'
,
't'
,
'e'
,
'g'
,
'o'
,
'r'
,
'i'
,
'e'
,
's'
,
0
};
static
const
WCHAR
req_keyname
[]
=
{
'R'
,
'e'
,
'q'
,
'u'
,
'i'
,
'r'
,
'e'
,
'd'
,
' '
,
'C'
,
'a'
,
't'
,
'e'
,
'g'
,
'o'
,
'r'
,
'i'
,
'e'
,
's'
,
0
};
HKEY
subkey
;
HRESULT
res
;
DWORD
index
;
...
...
@@ -735,7 +735,7 @@ static HRESULT WINAPI COMCAT_CLSID_IEnumGUID_Clone(
IEnumGUID
**
ppenum
)
{
CLSID_IEnumGUIDImpl
*
This
=
(
CLSID_IEnumGUIDImpl
*
)
iface
;
WCHAR
keyname
[
6
]
=
{
'C'
,
'L'
,
'S'
,
'I'
,
'D'
,
0
};
static
const
WCHAR
keyname
[
]
=
{
'C'
,
'L'
,
'S'
,
'I'
,
'D'
,
0
};
CLSID_IEnumGUIDImpl
*
new_this
;
DWORD
size
;
...
...
dlls/comcat/register.c
View file @
525b5f4e
...
...
@@ -111,7 +111,7 @@ static HRESULT WINAPI COMCAT_ICatRegister_RegisterCategories(
if
(
res
!=
ERROR_SUCCESS
)
return
E_FAIL
;
for
(;
cCategories
;
--
cCategories
,
++
rgci
)
{
WCHAR
fmt
[
4
]
=
{
'%'
,
'l'
,
'X'
,
0
};
static
const
WCHAR
fmt
[
]
=
{
'%'
,
'l'
,
'X'
,
0
};
WCHAR
keyname
[
39
];
WCHAR
valname
[
9
];
HKEY
cat_key
;
...
...
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