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
3c949ef4
Commit
3c949ef4
authored
Dec 27, 2004
by
Aric Stewart
Committed by
Alexandre Julliard
Dec 27, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable asynchronous dll custom action calls.
parent
4effec14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
13 deletions
+24
-13
action.c
dlls/msi/action.c
+24
-13
No files found.
dlls/msi/action.c
View file @
3c949ef4
...
...
@@ -1266,11 +1266,10 @@ typedef UINT __stdcall CustomEntry(MSIHANDLE);
typedef
struct
{
MSIPACKAGE
*
package
;
WCHAR
target
[
MAX_PATH
]
;
WCHAR
source
[
MAX_PATH
]
;
WCHAR
*
target
;
WCHAR
*
source
;
}
thread_struct
;
#if 0
static
DWORD
WINAPI
DllThread
(
LPVOID
info
)
{
HANDLE
DLL
;
...
...
@@ -1309,10 +1308,11 @@ static DWORD WINAPI DllThread(LPVOID info)
else
ERR
(
"Unable to load library
\n
"
);
msiobj_release
(
&
stuff
->
package
->
hdr
);
HeapFree( GetProcessHeap(), 0, info );
HeapFree
(
GetProcessHeap
(),
0
,
stuff
->
source
);
HeapFree
(
GetProcessHeap
(),
0
,
stuff
->
target
);
HeapFree
(
GetProcessHeap
(),
0
,
stuff
);
return
0
;
}
#endif
static
UINT
HANDLE_CustomType1
(
MSIPACKAGE
*
package
,
const
LPWSTR
source
,
const
LPWSTR
target
,
const
INT
type
)
...
...
@@ -1335,18 +1335,18 @@ static UINT HANDLE_CustomType1(MSIPACKAGE *package, const LPWSTR source,
if
(
type
&
0xc0
)
{
/* DWORD ThreadId; */
DWORD
ThreadId
;
HANDLE
ThreadHandle
;
thread_struct
*
info
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
info
)
);
/* msiobj_addref( &package->hdr ); */
msiobj_addref
(
&
package
->
hdr
);
info
->
package
=
package
;
strcpyW
(
info
->
target
,
target
);
strcpyW
(
info
->
source
,
tmp_file
);
TRACE
(
"Start Asynchronous execution
\n
"
);
FIXME
(
"DATABASE NOT THREADSAFE... not starting
\n
"
);
/* CreateThread(NULL,0,DllThread,(LPVOID)&info,0,&ThreadId); */
info
->
target
=
dupstrW
(
target
);
info
->
source
=
dupstrW
(
tmp_file
);
TRACE
(
"Start Asynchronous execution
of dll
\n
"
);
ThreadHandle
=
CreateThread
(
NULL
,
0
,
DllThread
,(
LPVOID
)
info
,
0
,
&
ThreadId
);
CloseHandle
(
ThreadHandle
);
/* FIXME: release the package if the CreateThread fails */
HeapFree
(
GetProcessHeap
(),
0
,
info
);
return
ERROR_SUCCESS
;
}
...
...
@@ -2866,6 +2866,11 @@ static UINT ACTION_InstallFiles(MSIPACKAGE *package)
DeleteFileW
(
file
->
SourcePath
);
rc
=
0
;
}
else
if
(
rc
==
ERROR_FILE_NOT_FOUND
)
{
ERR
(
"Source File Not Found! Continueing
\n
"
);
rc
=
0
;
}
else
break
;
}
...
...
@@ -3303,6 +3308,12 @@ static DWORD deformat_string(MSIPACKAGE *package, WCHAR* ptr,WCHAR** data)
DWORD
sz
;
UINT
rc
;
if
(
ptr
==
NULL
)
{
TRACE
(
"Deformatting NULL string
\n
"
);
*
data
=
NULL
;
return
0
;
}
/* scan for special characters */
if
(
!
strchrW
(
ptr
,
'['
)
||
(
strchrW
(
ptr
,
'['
)
&&
!
strchrW
(
ptr
,
']'
)))
{
...
...
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