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
672952d2
Commit
672952d2
authored
Mar 28, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Mar 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi: Correct the Inf output position.
parent
ff326fd0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
14 deletions
+5
-14
misc.c
dlls/setupapi/misc.c
+1
-1
misc.c
dlls/setupapi/tests/misc.c
+4
-13
No files found.
dlls/setupapi/misc.c
View file @
672952d2
...
...
@@ -978,7 +978,7 @@ BOOL WINAPI SetupCopyOEMInfW( PCWSTR source, PCWSTR location,
}
}
if
(
component
)
*
component
=
p
;
if
(
component
)
*
component
=
p
+
1
;
if
(
required_size
)
*
required_size
=
size
;
return
ret
;
...
...
dlls/setupapi/tests/misc.c
View file @
672952d2
...
...
@@ -92,7 +92,7 @@ static BOOL check_format(LPSTR path, LPSTR inf)
GetWindowsDirectory
(
check
,
MAX_PATH
);
lstrcat
(
check
,
format
);
res
=
!
strncmp
(
check
,
path
,
lstrlen
(
check
))
&&
res
=
!
strnc
asec
mp
(
check
,
path
,
lstrlen
(
check
))
&&
path
[
lstrlen
(
check
)]
!=
'\\'
;
return
(
!
inf
)
?
res
:
res
&&
(
inf
==
path
+
lstrlen
(
check
)
-
3
);
...
...
@@ -196,10 +196,7 @@ static void test_SetupCopyOEMInf(void)
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
GetLastError
());
ok
(
lstrlen
(
dest
)
!=
0
,
"Expected a non-zero length string
\n
"
);
ok
(
file_exists
(
dest
),
"Expected destination inf to exist
\n
"
);
todo_wine
{
ok
(
check_format
(
dest
,
NULL
),
"Expected %%windir%%
\\
inf
\\
OEMx.inf, got %s
\n
"
,
dest
);
}
ok
(
check_format
(
dest
,
NULL
),
"Expected %%windir%%
\\
inf
\\
OEMx.inf, got %s
\n
"
,
dest
);
ok
(
file_exists
(
path
),
"Expected source inf to exist
\n
"
);
lstrcpy
(
dest_save
,
dest
);
...
...
@@ -227,10 +224,7 @@ static void test_SetupCopyOEMInf(void)
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
GetLastError
());
ok
(
lstrlen
(
dest
)
+
1
==
size
,
"Expected sizes to match, got (%d, %d)
\n
"
,
lstrlen
(
dest
),
size
);
ok
(
file_exists
(
dest
),
"Expected destination inf to exist
\n
"
);
todo_wine
{
ok
(
check_format
(
dest
,
NULL
),
"Expected %%windir%%
\\
inf
\\
OEMx.inf, got %s
\n
"
,
dest
);
}
ok
(
check_format
(
dest
,
NULL
),
"Expected %%windir%%
\\
inf
\\
OEMx.inf, got %s
\n
"
,
dest
);
ok
(
file_exists
(
path
),
"Expected source inf to exist
\n
"
);
ok
(
size
==
lstrlen
(
dest_save
)
+
1
,
"Expected size to be lstrlen(dest_save) + 1
\n
"
);
...
...
@@ -241,10 +235,7 @@ static void test_SetupCopyOEMInf(void)
ok
(
GetLastError
()
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
GetLastError
());
ok
(
lstrlen
(
dest
)
+
1
==
size
,
"Expected sizes to match, got (%d, %d)
\n
"
,
lstrlen
(
dest
),
size
);
ok
(
file_exists
(
dest
),
"Expected destination inf to exist
\n
"
);
todo_wine
{
ok
(
check_format
(
dest
,
inf
),
"Expected %%windir%%
\\
inf
\\
OEMx.inf, got %s
\n
"
,
dest
);
}
ok
(
check_format
(
dest
,
inf
),
"Expected %%windir%%
\\
inf
\\
OEMx.inf, got %s
\n
"
,
dest
);
ok
(
file_exists
(
path
),
"Expected source inf to exist
\n
"
);
ok
(
size
==
lstrlen
(
dest_save
)
+
1
,
"Expected size to be lstrlen(dest_save) + 1
\n
"
);
...
...
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