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
fefad8fc
Commit
fefad8fc
authored
May 23, 2005
by
Aric Stewart
Committed by
Alexandre Julliard
May 23, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a leaking handle.
Make MsiCollectUserInfo more internally consistent. Thanks to Mike McCormack.
parent
a7275c85
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
msi.c
dlls/msi/msi.c
+12
-2
No files found.
dlls/msi/msi.c
View file @
fefad8fc
...
...
@@ -36,6 +36,7 @@
#include "winver.h"
#include "winuser.h"
#include "wine/unicode.h"
#include "action.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
msi
);
...
...
@@ -1604,6 +1605,7 @@ USERINFOSTATE WINAPI MsiGetUserInfoW(LPCWSTR szProduct, LPWSTR lpUserNameBuf,
if
(
pcchSerialBuf
)
*
pcchSerialBuf
=
sz
/
sizeof
(
WCHAR
);
RegCloseKey
(
hkey
);
return
USERINFOSTATE_PRESENT
;
}
...
...
@@ -1622,6 +1624,7 @@ UINT WINAPI MsiCollectUserInfoW(LPCWSTR szProduct)
{
MSIHANDLE
handle
;
UINT
rc
;
MSIPACKAGE
*
package
;
static
const
WCHAR
szFirstRun
[]
=
{
'F'
,
'i'
,
'r'
,
's'
,
't'
,
'R'
,
'u'
,
'n'
,
0
};
TRACE
(
"(%s)
\n
"
,
debugstr_w
(
szProduct
));
...
...
@@ -1630,7 +1633,10 @@ UINT WINAPI MsiCollectUserInfoW(LPCWSTR szProduct)
if
(
rc
!=
ERROR_SUCCESS
)
return
ERROR_INVALID_PARAMETER
;
rc
=
MsiDoActionW
(
handle
,
szFirstRun
);
package
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_PACKAGE
);
rc
=
ACTION_PerformUIAction
(
package
,
szFirstRun
);
msiobj_release
(
&
package
->
hdr
);
MsiCloseHandle
(
handle
);
return
rc
;
...
...
@@ -1640,6 +1646,7 @@ UINT WINAPI MsiCollectUserInfoA(LPCSTR szProduct)
{
MSIHANDLE
handle
;
UINT
rc
;
MSIPACKAGE
*
package
;
static
const
WCHAR
szFirstRun
[]
=
{
'F'
,
'i'
,
'r'
,
's'
,
't'
,
'R'
,
'u'
,
'n'
,
0
};
TRACE
(
"(%s)
\n
"
,
debugstr_a
(
szProduct
));
...
...
@@ -1648,7 +1655,10 @@ UINT WINAPI MsiCollectUserInfoA(LPCSTR szProduct)
if
(
rc
!=
ERROR_SUCCESS
)
return
ERROR_INVALID_PARAMETER
;
rc
=
MsiDoActionW
(
handle
,
szFirstRun
);
package
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_PACKAGE
);
rc
=
ACTION_PerformUIAction
(
package
,
szFirstRun
);
msiobj_release
(
&
package
->
hdr
);
MsiCloseHandle
(
handle
);
return
rc
;
...
...
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