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
44e942fb
Commit
44e942fb
authored
Feb 20, 2006
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Feb 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscms: Branching fixes for some test routines
parent
253e2964
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
profile.c
dlls/mscms/tests/profile.c
+11
-3
No files found.
dlls/mscms/tests/profile.c
View file @
44e942fb
...
@@ -527,7 +527,6 @@ static HKEY reg_open_mscms_key(void)
...
@@ -527,7 +527,6 @@ static HKEY reg_open_mscms_key(void)
RegCloseKey
(
win9x_key
);
RegCloseKey
(
win9x_key
);
RegCloseKey
(
winNT_key
);
RegCloseKey
(
winNT_key
);
if
(
!
ICM_key
)
return
NULL
;
return
ICM_key
;
return
ICM_key
;
}
}
...
@@ -548,15 +547,24 @@ static void check_registry(void)
...
@@ -548,15 +547,24 @@ static void check_registry(void)
}
}
res
=
RegQueryInfoKeyA
(
hkIcmKey
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
&
dwValCount
,
NULL
,
NULL
,
NULL
,
NULL
);
res
=
RegQueryInfoKeyA
(
hkIcmKey
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
&
dwValCount
,
NULL
,
NULL
,
NULL
,
NULL
);
if
(
!
res
)
{
trace
(
"RegQueryInfoKeyA() failed
\n
"
);
return
;
}
trace
(
"Count of profile entries found directly in the registry: %ld
\n
"
,
dwValCount
);
trace
(
"Count of profile entries found directly in the registry: %ld
\n
"
,
dwValCount
);
if
(
dwValCount
<
1
)
return
;
for
(
i
=
0
;
i
<
dwValCount
;
i
++
)
for
(
i
=
0
;
i
<
dwValCount
;
i
++
)
{
{
dwNameLen
=
sizeof
(
szName
);
dwNameLen
=
sizeof
(
szName
);
dwDataLen
=
sizeof
(
szData
);
dwDataLen
=
sizeof
(
szData
);
res
=
RegEnumValueA
(
hkIcmKey
,
i
,
szName
,
&
dwNameLen
,
NULL
,
&
dwType
,
(
LPBYTE
)
szData
,
&
dwDataLen
);
res
=
RegEnumValueA
(
hkIcmKey
,
i
,
szName
,
&
dwNameLen
,
NULL
,
&
dwType
,
(
LPBYTE
)
szData
,
&
dwDataLen
);
if
(
res
!=
ERROR_SUCCESS
)
break
;
if
(
res
!=
ERROR_SUCCESS
)
{
trace
(
"RegEnumValueA() failed (%ld), cannot enumerate profiles
\n
"
,
res
);
break
;
}
ok
(
dwType
==
REG_SZ
,
"RegEnumValueA() returned unexpected value type (%ld)
\n
"
,
dwType
);
ok
(
dwType
==
REG_SZ
,
"RegEnumValueA() returned unexpected value type (%ld)
\n
"
,
dwType
);
if
(
dwType
!=
REG_SZ
)
break
;
if
(
dwType
!=
REG_SZ
)
break
;
trace
(
" found '%s' value containing '%s' (%d chars)
\n
"
,
szName
,
szData
,
strlen
(
szData
));
trace
(
" found '%s' value containing '%s' (%d chars)
\n
"
,
szName
,
szData
,
strlen
(
szData
));
...
...
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