Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
721c11a5
Commit
721c11a5
authored
May 20, 2005
by
Aric Stewart
Committed by
Alexandre Julliard
May 20, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct query quoting based on Mike's patch.
Also more error messages about return codes from custom actions and ignore an error that we should be ignoring.
parent
a46003c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
custom.c
dlls/msi/custom.c
+14
-10
No files found.
dlls/msi/custom.c
View file @
721c11a5
...
...
@@ -80,9 +80,10 @@ UINT ACTION_CustomAction(MSIPACKAGE *package,LPCWSTR action, BOOL execute)
MSIQUERY
*
view
;
MSIRECORD
*
row
=
0
;
static
const
WCHAR
ExecSeqQuery
[]
=
{
's'
,
'e'
,
'l'
,
'e'
,
'c'
,
't'
,
' '
,
'*'
,
' '
,
'f'
,
'r'
,
'o'
,
'm'
,
' '
,
'C'
,
'u'
,
's'
,
't'
,
'o'
,
'm'
,
'A'
,
'c'
,
't'
,
'i'
,
'o'
,
'n'
,
' '
,
'w'
,
'h'
,
'e'
,
'r'
,
'e'
,
' '
,
'`'
,
'A'
,
'c'
,
't'
,
'i'
,
'o'
,
'n'
,
'`'
,
' '
,
'='
,
' '
,
'`'
,
'%'
,
's'
,
'`'
,
0
};
{
'S'
,
'E'
,
'L'
,
'E'
,
'C'
,
'T'
,
' '
,
'*'
,
' '
,
'F'
,
'R'
,
'O'
,
'M'
,
' '
,
'`'
,
'C'
,
'u'
,
's'
,
't'
,
'o'
,
'm'
,
'A'
,
'c'
,
't'
,
'i'
,
'o'
,
'n'
,
'`'
,
' '
,
'W'
,
'H'
,
'E'
,
'R'
,
'E'
,
' '
,
'`'
,
'A'
,
'c'
,
't'
,
'i'
,
'o'
,
'n'
,
'`'
,
' '
,
'='
,
' '
,
'\''
,
'%'
,
's'
,
'\''
,
0
};
UINT
type
;
LPWSTR
source
;
LPWSTR
target
;
...
...
@@ -251,8 +252,9 @@ static UINT store_binary_to_temp(MSIPACKAGE *package, LPCWSTR source,
MSIQUERY
*
view
;
MSIRECORD
*
row
=
0
;
static
const
WCHAR
fmt
[]
=
{
's'
,
'e'
,
'l'
,
'e'
,
'c'
,
't'
,
' '
,
'*'
,
' '
,
'f'
,
'r'
,
'o'
,
'm'
,
' '
,
'B'
,
'i'
,
'n'
,
'a'
,
'r'
,
'y'
,
' '
,
'w'
,
'h'
,
'e'
,
'r'
,
'e'
,
' '
,
'N'
,
'a'
,
'm'
,
'e'
,
'='
,
'`'
,
'%'
,
's'
,
'`'
,
0
};
{
'S'
,
'E'
,
'L'
,
'E'
,
'C'
,
'T'
,
' '
,
'*'
,
' '
,
'F'
,
'R'
,
'O'
,
'M'
,
' '
,
'`'
,
'B'
,
'i'
,
'n'
,
'a'
,
'r'
,
'y'
,
'`'
,
' '
,
'W'
,
'H'
,
'E'
,
'R'
,
'E'
,
' '
,
'`'
,
'N'
,
'a'
,
'm'
,
'e'
,
'`'
,
' '
,
'='
,
' '
,
'\''
,
'%'
,
's'
,
'\''
,
0
};
HANDLE
the_file
;
CHAR
buffer
[
1024
];
...
...
@@ -333,7 +335,7 @@ static void file_running_action(MSIPACKAGE* package, HANDLE Handle,
static
UINT
process_action_return_value
(
UINT
type
,
HANDLE
ThreadHandle
)
{
DWORD
rc
;
DWORD
rc
=
0
;
if
(
type
==
2
)
{
...
...
@@ -357,7 +359,8 @@ static UINT process_action_return_value(UINT type, HANDLE ThreadHandle)
case
ERROR_NO_MORE_ITEMS
:
return
ERROR_SUCCESS
;
default:
return
ERROR_FUNCTION_FAILED
;
ERR
(
"Invalid Return Code %lx
\n
"
,
rc
);
return
ERROR_INSTALL_FAILURE
;
}
}
...
...
@@ -479,7 +482,7 @@ static DWORD WINAPI DllThread(LPVOID info)
stuff
=
(
thread_struct
*
)
info
;
rc
=
ACTION_CallDllFunction
(
stuff
);
TRACE
(
"MSI Thread (0x%lx) finished
\n
"
,
GetCurrentThreadId
()
);
TRACE
(
"MSI Thread (0x%lx) finished
(rc %li)
\n
"
,
GetCurrentThreadId
(),
rc
);
/* clse all handles for this thread */
MsiCloseAllHandles
();
return
rc
;
...
...
@@ -630,7 +633,8 @@ static UINT HANDLE_CustomType19(MSIPACKAGE *package, LPCWSTR source,
static
const
WCHAR
query
[]
=
{
'S'
,
'E'
,
'L'
,
'E'
,
'C'
,
'T'
,
' '
,
'`'
,
'M'
,
'e'
,
's'
,
's'
,
'a'
,
'g'
,
'e'
,
'`'
,
' '
,
'F'
,
'R'
,
'O'
,
'M'
,
' '
,
'`'
,
'E'
,
'r'
,
'r'
,
'o'
,
'r'
,
'`'
,
' '
,
'W'
,
'H'
,
'E'
,
'R'
,
'E'
,
' '
,
'`'
,
'E'
,
'r'
,
'r'
,
'o'
,
'r'
,
'`'
,
' '
,
'='
,
' '
,
'%'
,
's'
,
0
'W'
,
'H'
,
'E'
,
'R'
,
'E'
,
' '
,
'`'
,
'E'
,
'r'
,
'r'
,
'o'
,
'r'
,
'`'
,
' '
,
'='
,
' '
,
'\''
,
'%'
,
's'
,
'\''
,
0
};
MSIQUERY
*
view
=
NULL
;
MSIRECORD
*
row
=
0
;
...
...
@@ -685,7 +689,7 @@ static UINT HANDLE_CustomType50(MSIPACKAGE *package, LPCWSTR source,
prop
=
load_dynamic_property
(
package
,
source
,
&
prc
);
if
(
!
prop
)
return
prc
;
return
ERROR_SUCCESS
;
deformat_string
(
package
,
target
,
&
deformated
);
len
=
strlenW
(
prop
)
+
2
;
...
...
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