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
615d09f2
Commit
615d09f2
authored
Oct 23, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Oct 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack: Fix the full path check.
parent
1f3f88bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
install.c
dlls/advpack/install.c
+1
-1
install.c
dlls/advpack/tests/install.c
+18
-0
No files found.
dlls/advpack/install.c
View file @
615d09f2
...
...
@@ -221,7 +221,7 @@ static BOOL is_full_path(LPWSTR path)
if
(
!
path
||
lstrlenW
(
path
)
<
MIN_PATH_LEN
)
return
FALSE
;
if
(
path
[
1
]
==
':'
||
(
path
[
0
]
==
'\\'
&&
path
[
1
]
==
'\\'
))
if
(
(
path
[
1
]
==
':'
&&
path
[
2
]
==
'\\'
)
||
(
path
[
0
]
==
'\\'
&&
path
[
1
]
==
'\\'
))
return
TRUE
;
return
FALSE
;
...
...
dlls/advpack/tests/install.c
View file @
615d09f2
...
...
@@ -226,6 +226,23 @@ static void test_LaunchINFSection()
DeleteFileA
(
"test.inf"
);
}
static
void
test_LaunchINFSectionEx
()
{
HRESULT
hr
;
char
cmdline
[
MAX_PATH
];
create_inf_file
(
"test.inf"
);
/* try an invalid CAB filename */
lstrcpy
(
cmdline
,
CURR_DIR
);
lstrcpy
(
cmdline
,
"
\\
"
);
lstrcpy
(
cmdline
,
"test.inf,DefaultInstall,c:imacab.cab,4"
);
hr
=
pLaunchINFSectionEx
(
NULL
,
NULL
,
cmdline
,
0
);
ok
(
hr
==
0
,
"Expected 0, got %d
\n
"
,
hr
);
DeleteFileA
(
"test.inf"
);
}
START_TEST
(
install
)
{
if
(
!
init_function_pointers
())
...
...
@@ -235,4 +252,5 @@ START_TEST(install)
test_RunSetupCommand
();
test_LaunchINFSection
();
test_LaunchINFSectionEx
();
}
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