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
64802588
Commit
64802588
authored
Dec 30, 2010
by
André Hentschel
Committed by
Alexandre Julliard
Dec 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Don't test function directly when reporting GetLastError().
parent
cea221ca
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
automation.c
dlls/msi/tests/automation.c
+2
-1
install.c
dlls/msi/tests/install.c
+7
-2
No files found.
dlls/msi/tests/automation.c
View file @
64802588
...
...
@@ -2103,7 +2103,8 @@ static void test_Installer_RegistryValue(void)
"RegSetValueExW failed
\n
"
);
ok
(
!
RegSetValueExW
(
hkey
,
szThree
,
0
,
REG_BINARY
,
(
const
BYTE
*
)
qw
,
4
),
"RegSetValueExW failed
\n
"
);
ok
(
SetEnvironmentVariableA
(
"MSITEST"
,
"Four"
),
"SetEnvironmentVariableA failed %d
\n
"
,
GetLastError
());
bRet
=
SetEnvironmentVariableA
(
"MSITEST"
,
"Four"
);
ok
(
bRet
,
"SetEnvironmentVariableA failed %d
\n
"
,
GetLastError
());
ok
(
!
RegSetValueExW
(
hkey
,
szFour
,
0
,
REG_EXPAND_SZ
,
(
const
BYTE
*
)
szExpand
,
sizeof
(
szExpand
)),
"RegSetValueExW failed
\n
"
);
ok
(
!
RegSetValueExW
(
hkey
,
szFive
,
0
,
REG_MULTI_SZ
,
(
const
BYTE
*
)
szFive
,
sizeof
(
szFive
)),
...
...
dlls/msi/tests/install.c
View file @
64802588
...
...
@@ -5546,6 +5546,7 @@ static void process_pending_renames(HKEY hkey)
for
(
src
=
buf
;
*
src
;
src
=
dst
+
strlen
(
dst
)
+
1
)
{
DWORD
flags
=
MOVEFILE_COPY_ALLOWED
;
BOOL
fileret
;
dst
=
src
+
strlen
(
src
)
+
1
;
...
...
@@ -5573,10 +5574,14 @@ static void process_pending_renames(HKEY hkey)
if
(
*
dst
)
{
if
(
dst
[
0
]
==
'\\'
&&
dst
[
1
]
==
'?'
&&
dst
[
2
]
==
'?'
&&
dst
[
3
]
==
'\\'
)
dst
+=
4
;
ok
(
MoveFileExA
(
src
,
dst
,
flags
),
"Failed to move file %s -> %s (%u)
\n
"
,
src
,
dst
,
GetLastError
());
fileret
=
MoveFileExA
(
src
,
dst
,
flags
);
ok
(
fileret
,
"Failed to move file %s -> %s (%u)
\n
"
,
src
,
dst
,
GetLastError
());
}
else
ok
(
DeleteFileA
(
src
),
"Failed to delete file %s (%u)
\n
"
,
src
,
GetLastError
());
{
fileret
=
DeleteFileA
(
src
);
ok
(
fileret
,
"Failed to delete file %s (%u)
\n
"
,
src
,
GetLastError
());
}
}
ok
(
found
,
"Expected a 'msitest' entry
\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