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
299a358f
Commit
299a358f
authored
May 08, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
May 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: SetupQueryInfOriginalFileInformationA is not available on win98.
parent
c5134b77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
misc.c
dlls/setupapi/tests/misc.c
+10
-3
No files found.
dlls/setupapi/tests/misc.c
View file @
299a358f
...
...
@@ -44,7 +44,7 @@ static CHAR CURR_DIR[MAX_PATH];
static
BOOL
(
WINAPI
*
pSetupGetFileCompressionInfoExA
)(
PCSTR
,
PSTR
,
DWORD
,
PDWORD
,
PDWORD
,
PDWORD
,
PUINT
);
static
BOOL
(
WINAPI
*
pSetupCopyOEMInfA
)(
PCSTR
,
PCSTR
,
DWORD
,
DWORD
,
PSTR
,
DWORD
,
PDWORD
,
PSTR
*
);
static
BOOL
(
WINAPI
*
pSetupQueryInfOriginalFileInformationA
)(
PSP_INF_INFORMATION
,
UINT
,
PSP_ALTPLATFORM_INFO
,
PSP_ORIGINAL_FILE_INFO_A
);
static
void
append_str
(
char
**
str
,
const
char
*
data
)
{
...
...
@@ -111,6 +111,12 @@ static void test_original_file_name(LPCSTR original, LPCSTR dest)
BOOL
res
;
DWORD
size
;
if
(
!
pSetupQueryInfOriginalFileInformationA
)
{
skip
(
"SetupQueryInfOriginalFileInformationA is not available
\n
"
);
return
;
}
hinf
=
SetupOpenInfFileA
(
dest
,
NULL
,
INF_STYLE_WIN4
,
NULL
);
ok
(
hinf
!=
NULL
,
"SetupOpenInfFileA failed with error %d
\n
"
,
GetLastError
());
...
...
@@ -123,12 +129,12 @@ static void test_original_file_name(LPCSTR original, LPCSTR dest)
ok
(
res
,
"SetupGetInfInformation failed with error %d
\n
"
,
GetLastError
());
spofi
.
cbSize
=
0
;
res
=
SetupQueryInfOriginalFileInformationA
(
pspii
,
0
,
NULL
,
&
spofi
);
res
=
p
SetupQueryInfOriginalFileInformationA
(
pspii
,
0
,
NULL
,
&
spofi
);
ok
(
!
res
&&
GetLastError
()
==
ERROR_INVALID_USER_BUFFER
,
"SetupQueryInfOriginalFileInformationA should have failed with ERROR_INVALID_USER_BUFFER instead of %d
\n
"
,
GetLastError
());
spofi
.
cbSize
=
sizeof
(
spofi
);
res
=
SetupQueryInfOriginalFileInformationA
(
pspii
,
0
,
NULL
,
&
spofi
);
res
=
p
SetupQueryInfOriginalFileInformationA
(
pspii
,
0
,
NULL
,
&
spofi
);
ok
(
res
,
"SetupQueryInfOriginalFileInformationA failed with error %d
\n
"
,
GetLastError
());
ok
(
!
spofi
.
OriginalCatalogName
[
0
],
"spofi.OriginalCatalogName should have been
\"\"
instead of
\"
%s
\"\n
"
,
spofi
.
OriginalCatalogName
);
todo_wine
...
...
@@ -568,6 +574,7 @@ START_TEST(misc)
pSetupGetFileCompressionInfoExA
=
(
void
*
)
GetProcAddress
(
hsetupapi
,
"SetupGetFileCompressionInfoExA"
);
pSetupCopyOEMInfA
=
(
void
*
)
GetProcAddress
(
hsetupapi
,
"SetupCopyOEMInfA"
);
pSetupQueryInfOriginalFileInformationA
=
(
void
*
)
GetProcAddress
(
hsetupapi
,
"SetupQueryInfOriginalFileInformationA"
);
GetCurrentDirectoryA
(
MAX_PATH
,
CURR_DIR
);
...
...
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