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
fbe35b62
Commit
fbe35b62
authored
Mar 21, 2005
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 21, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Key words and replacements are case insensitive.
parent
6a365e00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
registrar.c
dlls/atl/registrar.c
+10
-8
No files found.
dlls/atl/registrar.c
View file @
fbe35b62
...
@@ -169,12 +169,14 @@ static HRESULT do_preprocess(Registrar *This, LPCOLESTR data, strbuf *buf)
...
@@ -169,12 +169,14 @@ static HRESULT do_preprocess(Registrar *This, LPCOLESTR data, strbuf *buf)
strbuf_write
(
wstr
,
buf
,
1
);
strbuf_write
(
wstr
,
buf
,
1
);
}
else
{
}
else
{
for
(
rep_iter
=
This
->
rep
;
rep_iter
;
rep_iter
=
rep_iter
->
next
)
{
for
(
rep_iter
=
This
->
rep
;
rep_iter
;
rep_iter
=
rep_iter
->
next
)
{
if
(
rep_iter
->
key_len
==
iter
-
iter2
if
(
rep_iter
->
key_len
==
iter
-
iter2
&&
!
mem
cmp
(
iter2
,
rep_iter
->
key
,
rep_iter
->
key_len
*
sizeof
(
OLECHAR
)
))
&&
!
mem
icmpW
(
iter2
,
rep_iter
->
key
,
rep_iter
->
key_len
))
break
;
break
;
}
}
if
(
!
rep_iter
)
if
(
!
rep_iter
)
{
WARN
(
"Could not find replacement: %s
\n
"
,
debugstr_wn
(
iter2
,
iter
-
iter2
));
return
DISP_E_EXCEPTION
;
return
DISP_E_EXCEPTION
;
}
strbuf_write
(
rep_iter
->
item
,
buf
,
-
1
);
strbuf_write
(
rep_iter
->
item
,
buf
,
-
1
);
}
}
...
@@ -218,13 +220,13 @@ static HRESULT do_process_key(LPCOLESTR *pstr, HKEY parent_key, strbuf *buf, BOO
...
@@ -218,13 +220,13 @@ static HRESULT do_process_key(LPCOLESTR *pstr, HKEY parent_key, strbuf *buf, BOO
while
(
buf
->
str
[
1
]
||
buf
->
str
[
0
]
!=
'}'
)
{
while
(
buf
->
str
[
1
]
||
buf
->
str
[
0
]
!=
'}'
)
{
key_type
=
NORMAL
;
key_type
=
NORMAL
;
if
(
!
lstrcmpW
(
buf
->
str
,
wstrNoRemove
))
if
(
!
lstrcmp
i
W
(
buf
->
str
,
wstrNoRemove
))
key_type
=
NO_REMOVE
;
key_type
=
NO_REMOVE
;
else
if
(
!
lstrcmpW
(
buf
->
str
,
wstrForceRemove
))
else
if
(
!
lstrcmp
i
W
(
buf
->
str
,
wstrForceRemove
))
key_type
=
FORCE_REMOVE
;
key_type
=
FORCE_REMOVE
;
else
if
(
!
lstrcmpW
(
buf
->
str
,
wstrval
))
else
if
(
!
lstrcmp
i
W
(
buf
->
str
,
wstrval
))
key_type
=
IS_VAL
;
key_type
=
IS_VAL
;
else
if
(
!
lstrcmpW
(
buf
->
str
,
wstrDelete
))
else
if
(
!
lstrcmp
i
W
(
buf
->
str
,
wstrDelete
))
key_type
=
DO_DELETE
;
key_type
=
DO_DELETE
;
if
(
key_type
!=
NORMAL
)
{
if
(
key_type
!=
NORMAL
)
{
...
@@ -369,7 +371,7 @@ static HRESULT do_process_root_key(LPCOLESTR data, BOOL do_register)
...
@@ -369,7 +371,7 @@ static HRESULT do_process_root_key(LPCOLESTR data, BOOL do_register)
break
;
break
;
}
}
for
(
i
=
0
;
i
<
sizeof
(
root_keys
)
/
sizeof
(
root_keys
[
0
]);
i
++
)
{
for
(
i
=
0
;
i
<
sizeof
(
root_keys
)
/
sizeof
(
root_keys
[
0
]);
i
++
)
{
if
(
!
lstrcmpW
(
buf
.
str
,
root_keys
[
i
].
name
))
if
(
!
lstrcmp
i
W
(
buf
.
str
,
root_keys
[
i
].
name
))
break
;
break
;
}
}
if
(
i
==
sizeof
(
root_keys
)
/
sizeof
(
root_keys
[
0
]))
{
if
(
i
==
sizeof
(
root_keys
)
/
sizeof
(
root_keys
[
0
]))
{
...
...
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