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
ff6fe41d
Commit
ff6fe41d
authored
Sep 05, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Use the TargetPath of a file if the file doesn't exist in MsiFormatRecord.
parent
a248cc8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
12 deletions
+6
-12
format.c
dlls/msi/format.c
+2
-2
format.c
dlls/msi/tests/format.c
+4
-10
No files found.
dlls/msi/format.c
View file @
ff6fe41d
...
...
@@ -165,8 +165,8 @@ static LPWSTR deformat_file(MSIPACKAGE* package, LPCWSTR key, DWORD* sz,
{
ERR
(
"Unable to get ShortPath size (%s)
\n
"
,
debugstr_w
(
file
->
TargetPath
)
);
value
=
NULL
;
*
sz
=
0
;
value
=
strdupW
(
file
->
TargetPath
)
;
*
sz
=
(
lstrlenW
(
value
))
*
sizeof
(
WCHAR
)
;
}
}
}
...
...
dlls/msi/tests/format.c
View file @
ff6fe41d
...
...
@@ -1804,11 +1804,8 @@ static void test_formatrecord_tables(void)
MsiRecordSetString
(
hrec
,
1
,
"[!temporal_file]"
);
r
=
MsiFormatRecord
(
hpkg
,
hrec
,
buf
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"format record failed: %d
\n
"
,
r
);
todo_wine
{
ok
(
!
lstrcmp
(
buf
,
"1: C:
\\
I am a really long directory
\\
temporal.txt "
),
"Expected '1: C:
\\
I am a really long directory
\\
temporal.txt ', got %s
\n
"
,
buf
);
}
ok
(
!
lstrcmp
(
buf
,
"1: C:
\\
I am a really long directory
\\
temporal.txt "
),
"Expected '1: C:
\\
I am a really long directory
\\
temporal.txt ', got %s
\n
"
,
buf
);
/* custom action 51, files don't exist */
r
=
MsiDoAction
(
hpkg
,
"MyCustom"
);
...
...
@@ -1817,11 +1814,8 @@ static void test_formatrecord_tables(void)
size
=
MAX_PATH
;
r
=
MsiGetProperty
(
hpkg
,
"prop"
,
buf
,
&
size
);
ok
(
r
==
ERROR_SUCCESS
,
"get property failed: %d
\n
"
,
r
);
todo_wine
{
ok
(
!
lstrcmp
(
buf
,
"C:
\\
I am a really long directory
\\
temporal.txt"
),
"Expected 'C:
\\
I am a really long directory
\\
temporal.txt', got %s
\n
"
,
buf
);
}
ok
(
!
lstrcmp
(
buf
,
"C:
\\
I am a really long directory
\\
temporal.txt"
),
"Expected 'C:
\\
I am a really long directory
\\
temporal.txt', got %s
\n
"
,
buf
);
CreateDirectory
(
"C:
\\
I am a really long directory"
,
NULL
);
create_test_file
(
"C:
\\
I am a really long directory
\\
temporal.txt"
);
...
...
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