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
6bd893a9
Commit
6bd893a9
authored
Jan 04, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Change MSIHANDLE to ULONG for Win64 compatibility.
Also fix the compiler warnings produced by this change.
parent
52035af0
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
84 additions
and
84 deletions
+84
-84
database.c
dlls/msi/database.c
+7
-7
format.c
dlls/msi/format.c
+2
-2
handle.c
dlls/msi/handle.c
+4
-4
install.c
dlls/msi/install.c
+8
-8
msi.c
dlls/msi/msi.c
+5
-5
msiquery.c
dlls/msi/msiquery.c
+16
-16
package.c
dlls/msi/package.c
+2
-2
preview.c
dlls/msi/preview.c
+5
-5
record.c
dlls/msi/record.c
+13
-13
suminfo.c
dlls/msi/suminfo.c
+10
-10
db.c
dlls/msi/tests/db.c
+3
-3
format.c
dlls/msi/tests/format.c
+2
-2
package.c
dlls/msi/tests/package.c
+6
-6
msi.h
include/msi.h
+1
-1
No files found.
dlls/msi/database.c
View file @
6bd893a9
...
...
@@ -692,7 +692,7 @@ UINT WINAPI MsiDatabaseImportW(MSIHANDLE handle, LPCWSTR szFolder, LPCWSTR szFil
MSIDATABASE
*
db
;
UINT
r
;
TRACE
(
"%
l
x %s %s
\n
"
,
handle
,
debugstr_w
(
szFolder
),
debugstr_w
(
szFilename
));
TRACE
(
"%x %s %s
\n
"
,
handle
,
debugstr_w
(
szFolder
),
debugstr_w
(
szFilename
));
db
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_DATABASE
);
if
(
!
db
)
...
...
@@ -720,7 +720,7 @@ UINT WINAPI MsiDatabaseImportA( MSIHANDLE handle,
LPWSTR
path
=
NULL
,
file
=
NULL
;
UINT
r
=
ERROR_OUTOFMEMORY
;
TRACE
(
"%
l
x %s %s
\n
"
,
handle
,
debugstr_a
(
szFolder
),
debugstr_a
(
szFilename
));
TRACE
(
"%x %s %s
\n
"
,
handle
,
debugstr_a
(
szFolder
),
debugstr_a
(
szFilename
));
if
(
szFolder
)
{
...
...
@@ -912,7 +912,7 @@ UINT WINAPI MsiDatabaseExportW( MSIHANDLE handle, LPCWSTR szTable,
MSIDATABASE
*
db
;
UINT
r
;
TRACE
(
"%
l
x %s %s %s
\n
"
,
handle
,
debugstr_w
(
szTable
),
TRACE
(
"%x %s %s %s
\n
"
,
handle
,
debugstr_w
(
szTable
),
debugstr_w
(
szFolder
),
debugstr_w
(
szFilename
));
db
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_DATABASE
);
...
...
@@ -941,7 +941,7 @@ UINT WINAPI MsiDatabaseExportA( MSIHANDLE handle, LPCSTR szTable,
LPWSTR
path
=
NULL
,
file
=
NULL
,
table
=
NULL
;
UINT
r
=
ERROR_OUTOFMEMORY
;
TRACE
(
"%
l
x %s %s %s
\n
"
,
handle
,
debugstr_a
(
szTable
),
TRACE
(
"%x %s %s %s
\n
"
,
handle
,
debugstr_a
(
szTable
),
debugstr_a
(
szFolder
),
debugstr_a
(
szFilename
));
if
(
szTable
)
...
...
@@ -981,7 +981,7 @@ UINT WINAPI MsiDatabaseMergeA(MSIHANDLE hDatabase, MSIHANDLE hDatabaseMerge,
UINT
r
;
LPWSTR
table
;
TRACE
(
"(%
ld, %l
d, %s)
\n
"
,
hDatabase
,
hDatabaseMerge
,
TRACE
(
"(%
d, %
d, %s)
\n
"
,
hDatabase
,
hDatabaseMerge
,
debugstr_a
(
szTableName
));
table
=
strdupAtoW
(
szTableName
);
...
...
@@ -1426,7 +1426,7 @@ UINT WINAPI MsiDatabaseMergeW(MSIHANDLE hDatabase, MSIHANDLE hDatabaseMerge,
BOOL
conflicts
;
UINT
r
;
TRACE
(
"(%
ld, %l
d, %s)
\n
"
,
hDatabase
,
hDatabaseMerge
,
TRACE
(
"(%
d, %
d, %s)
\n
"
,
hDatabase
,
hDatabaseMerge
,
debugstr_w
(
szTableName
));
if
(
szTableName
&&
!*
szTableName
)
...
...
@@ -1488,7 +1488,7 @@ MSIDBSTATE WINAPI MsiGetDatabaseState( MSIHANDLE handle )
MSIDBSTATE
ret
=
MSIDBSTATE_READ
;
MSIDATABASE
*
db
;
TRACE
(
"%
l
d
\n
"
,
handle
);
TRACE
(
"%d
\n
"
,
handle
);
db
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_DATABASE
);
if
(
!
db
)
...
...
dlls/msi/format.c
View file @
6bd893a9
...
...
@@ -913,7 +913,7 @@ UINT WINAPI MsiFormatRecordW( MSIHANDLE hInstall, MSIHANDLE hRecord,
MSIPACKAGE
*
package
;
MSIRECORD
*
record
;
TRACE
(
"%
ld %l
d %p %p
\n
"
,
hInstall
,
hRecord
,
szResult
,
sz
);
TRACE
(
"%
d %
d %p %p
\n
"
,
hInstall
,
hRecord
,
szResult
,
sz
);
package
=
msihandle2msiinfo
(
hInstall
,
MSIHANDLETYPE_PACKAGE
);
if
(
!
package
)
...
...
@@ -978,7 +978,7 @@ UINT WINAPI MsiFormatRecordA( MSIHANDLE hInstall, MSIHANDLE hRecord,
DWORD
len
,
save
;
LPWSTR
value
;
TRACE
(
"%
ld %l
d %p %p
\n
"
,
hInstall
,
hRecord
,
szResult
,
sz
);
TRACE
(
"%
d %
d %p %p
\n
"
,
hInstall
,
hRecord
,
szResult
,
sz
);
if
(
!
hRecord
)
return
ERROR_INVALID_HANDLE
;
...
...
dlls/msi/handle.c
View file @
6bd893a9
...
...
@@ -123,7 +123,7 @@ MSIHANDLE alloc_msihandle( MSIOBJECTHDR *obj )
LeaveCriticalSection
(
&
MSI_handle_cs
);
TRACE
(
"%p -> %
l
d
\n
"
,
obj
,
ret
);
TRACE
(
"%p -> %d
\n
"
,
obj
,
ret
);
return
ret
;
}
...
...
@@ -147,7 +147,7 @@ MSIHANDLE alloc_msi_remote_handle( IUnknown *unk )
LeaveCriticalSection
(
&
MSI_handle_cs
);
TRACE
(
"%p -> %
l
d
\n
"
,
unk
,
ret
);
TRACE
(
"%p -> %d
\n
"
,
unk
,
ret
);
return
ret
;
}
...
...
@@ -270,7 +270,7 @@ UINT WINAPI MsiCloseHandle(MSIHANDLE handle)
MSIOBJECTHDR
*
info
=
NULL
;
UINT
ret
=
ERROR_INVALID_HANDLE
;
TRACE
(
"%
l
x
\n
"
,
handle
);
TRACE
(
"%x
\n
"
,
handle
);
if
(
!
handle
)
return
ERROR_SUCCESS
;
...
...
@@ -304,7 +304,7 @@ UINT WINAPI MsiCloseHandle(MSIHANDLE handle)
ret
=
ERROR_SUCCESS
;
TRACE
(
"handle %
l
x destroyed
\n
"
,
handle
+
1
);
TRACE
(
"handle %x destroyed
\n
"
,
handle
+
1
);
out:
LeaveCriticalSection
(
&
MSI_handle_cs
);
if
(
info
)
...
...
dlls/msi/install.c
View file @
6bd893a9
...
...
@@ -707,7 +707,7 @@ BOOL WINAPI MsiGetMode(MSIHANDLE hInstall, MSIRUNMODE iRunMode)
break
;
default:
FIXME
(
"%
l
d %d
\n
"
,
hInstall
,
iRunMode
);
FIXME
(
"%d %d
\n
"
,
hInstall
,
iRunMode
);
r
=
TRUE
;
}
...
...
@@ -727,7 +727,7 @@ BOOL WINAPI MsiSetMode(MSIHANDLE hInstall, MSIRUNMODE iRunMode, BOOL fState)
case
MSIRUNMODE_RESERVED15
:
return
FALSE
;
default:
FIXME
(
"%
l
d %d %d
\n
"
,
hInstall
,
iRunMode
,
fState
);
FIXME
(
"%d %d %d
\n
"
,
hInstall
,
iRunMode
,
fState
);
}
return
TRUE
;
}
...
...
@@ -886,7 +886,7 @@ UINT WINAPI MsiGetFeatureStateW(MSIHANDLE hInstall, LPCWSTR szFeature,
MSIPACKAGE
*
package
;
UINT
ret
;
TRACE
(
"%
l
d %s %p %p
\n
"
,
hInstall
,
debugstr_w
(
szFeature
),
piInstalled
,
piAction
);
TRACE
(
"%d %s %p %p
\n
"
,
hInstall
,
debugstr_w
(
szFeature
),
piInstalled
,
piAction
);
package
=
msihandle2msiinfo
(
hInstall
,
MSIHANDLETYPE_PACKAGE
);
if
(
!
package
)
...
...
@@ -934,7 +934,7 @@ UINT WINAPI MsiGetFeatureStateW(MSIHANDLE hInstall, LPCWSTR szFeature,
UINT
WINAPI
MsiGetFeatureCostA
(
MSIHANDLE
hInstall
,
LPCSTR
szFeature
,
MSICOSTTREE
iCostTree
,
INSTALLSTATE
iState
,
LPINT
piCost
)
{
FIXME
(
"(%
l
d %s %i %i %p): stub
\n
"
,
hInstall
,
debugstr_a
(
szFeature
),
FIXME
(
"(%d %s %i %i %p): stub
\n
"
,
hInstall
,
debugstr_a
(
szFeature
),
iCostTree
,
iState
,
piCost
);
if
(
piCost
)
*
piCost
=
0
;
return
ERROR_SUCCESS
;
...
...
@@ -946,7 +946,7 @@ UINT WINAPI MsiGetFeatureCostA(MSIHANDLE hInstall, LPCSTR szFeature,
UINT
WINAPI
MsiGetFeatureCostW
(
MSIHANDLE
hInstall
,
LPCWSTR
szFeature
,
MSICOSTTREE
iCostTree
,
INSTALLSTATE
iState
,
LPINT
piCost
)
{
FIXME
(
"(%
l
d %s %i %i %p): stub
\n
"
,
hInstall
,
debugstr_w
(
szFeature
),
FIXME
(
"(%d %s %i %i %p): stub
\n
"
,
hInstall
,
debugstr_w
(
szFeature
),
iCostTree
,
iState
,
piCost
);
if
(
piCost
)
*
piCost
=
0
;
return
ERROR_SUCCESS
;
...
...
@@ -1082,7 +1082,7 @@ UINT WINAPI MsiGetComponentStateW(MSIHANDLE hInstall, LPCWSTR szComponent,
MSIPACKAGE
*
package
;
UINT
ret
;
TRACE
(
"%
l
d %s %p %p
\n
"
,
hInstall
,
debugstr_w
(
szComponent
),
TRACE
(
"%d %s %p %p
\n
"
,
hInstall
,
debugstr_w
(
szComponent
),
piInstalled
,
piAction
);
package
=
msihandle2msiinfo
(
hInstall
,
MSIHANDLETYPE_PACKAGE
);
...
...
@@ -1191,7 +1191,7 @@ UINT WINAPI MsiSetInstallLevel(MSIHANDLE hInstall, int iInstallLevel)
MSIPACKAGE
*
package
;
UINT
r
;
TRACE
(
"%
l
d %i
\n
"
,
hInstall
,
iInstallLevel
);
TRACE
(
"%d %i
\n
"
,
hInstall
,
iInstallLevel
);
package
=
msihandle2msiinfo
(
hInstall
,
MSIHANDLETYPE_PACKAGE
);
if
(
!
package
)
...
...
@@ -1232,7 +1232,7 @@ UINT WINAPI MsiGetFeatureValidStatesW(MSIHANDLE hInstall, LPCWSTR szFeature,
LPDWORD
pInstallState
)
{
if
(
pInstallState
)
*
pInstallState
=
1
<<
INSTALLSTATE_LOCAL
;
FIXME
(
"%
l
d %s %p stub returning %d
\n
"
,
FIXME
(
"%d %s %p stub returning %d
\n
"
,
hInstall
,
debugstr_w
(
szFeature
),
pInstallState
,
pInstallState
?
*
pInstallState
:
0
);
return
ERROR_SUCCESS
;
...
...
dlls/msi/msi.c
View file @
6bd893a9
...
...
@@ -1443,7 +1443,7 @@ UINT WINAPI MsiEnumComponentCostsW(MSIHANDLE hInstall, LPCWSTR szComponent,
LPWSTR
lpDriveBuf
,
DWORD
*
pcchDriveBuf
,
int
*
piCost
,
int
*
pTempCost
)
{
FIXME
(
"(%
l
d, %s, %d, %d, %p, %p, %p %p): stub!
\n
"
,
hInstall
,
FIXME
(
"(%d, %s, %d, %d, %p, %p, %p %p): stub!
\n
"
,
hInstall
,
debugstr_w
(
szComponent
),
dwIndex
,
iState
,
lpDriveBuf
,
pcchDriveBuf
,
piCost
,
pTempCost
);
...
...
@@ -1743,10 +1743,10 @@ LANGID WINAPI MsiLoadStringW( MSIHANDLE handle, UINT id, LPWSTR lpBuffer,
LPWSTR
p
;
DWORD
i
,
len
;
TRACE
(
"%
l
d %u %p %d %d
\n
"
,
handle
,
id
,
lpBuffer
,
nBufferMax
,
lang
);
TRACE
(
"%d %u %p %d %d
\n
"
,
handle
,
id
,
lpBuffer
,
nBufferMax
,
lang
);
if
(
handle
!=
-
1
)
FIXME
(
"don't know how to deal with handle = %08
l
x
\n
"
,
handle
);
FIXME
(
"don't know how to deal with handle = %08x
\n
"
,
handle
);
if
(
!
lang
)
lang
=
GetUserDefaultLangID
();
...
...
@@ -1903,7 +1903,7 @@ UINT WINAPI MsiGetProductPropertyA(MSIHANDLE hProduct, LPCSTR szProperty,
DWORD
len
;
UINT
r
;
TRACE
(
"(%
l
d, %s, %p, %p)
\n
"
,
hProduct
,
debugstr_a
(
szProperty
),
TRACE
(
"(%d, %s, %p, %p)
\n
"
,
hProduct
,
debugstr_a
(
szProperty
),
szValue
,
pccbValue
);
if
(
szValue
&&
!
pccbValue
)
...
...
@@ -1972,7 +1972,7 @@ UINT WINAPI MsiGetProductPropertyW(MSIHANDLE hProduct, LPCWSTR szProperty,
'`'
,
'P'
,
'r'
,
'o'
,
'p'
,
'e'
,
'r'
,
't'
,
'y'
,
'`'
,
' '
,
'W'
,
'H'
,
'E'
,
'R'
,
'E'
,
' '
,
'`'
,
'P'
,
'r'
,
'o'
,
'p'
,
'e'
,
'r'
,
't'
,
'y'
,
'`'
,
'='
,
'\''
,
'%'
,
's'
,
'\''
,
0
};
TRACE
(
"(%
l
d, %s, %p, %p)
\n
"
,
hProduct
,
debugstr_w
(
szProperty
),
TRACE
(
"(%d, %s, %p, %p)
\n
"
,
hProduct
,
debugstr_w
(
szProperty
),
szValue
,
pccbValue
);
if
(
!
szProperty
)
...
...
dlls/msi/msiquery.c
View file @
6bd893a9
...
...
@@ -91,7 +91,7 @@ UINT WINAPI MsiDatabaseOpenViewA(MSIHANDLE hdb,
UINT
r
;
LPWSTR
szwQuery
;
TRACE
(
"%
l
d %s %p
\n
"
,
hdb
,
debugstr_a
(
szQuery
),
phView
);
TRACE
(
"%d %s %p
\n
"
,
hdb
,
debugstr_a
(
szQuery
),
phView
);
if
(
szQuery
)
{
...
...
@@ -388,7 +388,7 @@ UINT WINAPI MsiViewFetch(MSIHANDLE hView, MSIHANDLE *record)
MSIRECORD
*
rec
=
NULL
;
UINT
ret
;
TRACE
(
"%
l
d %p
\n
"
,
hView
,
record
);
TRACE
(
"%d %p
\n
"
,
hView
,
record
);
if
(
!
record
)
return
ERROR_INVALID_PARAMETER
;
...
...
@@ -429,7 +429,7 @@ UINT WINAPI MsiViewClose(MSIHANDLE hView)
MSIQUERY
*
query
;
UINT
ret
;
TRACE
(
"%
l
d
\n
"
,
hView
);
TRACE
(
"%d
\n
"
,
hView
);
query
=
msihandle2msiinfo
(
hView
,
MSIHANDLETYPE_VIEW
);
if
(
!
query
)
...
...
@@ -462,7 +462,7 @@ UINT WINAPI MsiViewExecute(MSIHANDLE hView, MSIHANDLE hRec)
MSIRECORD
*
rec
=
NULL
;
UINT
ret
;
TRACE
(
"%
ld %l
d
\n
"
,
hView
,
hRec
);
TRACE
(
"%
d %
d
\n
"
,
hView
,
hRec
);
query
=
msihandle2msiinfo
(
hView
,
MSIHANDLETYPE_VIEW
);
if
(
!
query
)
...
...
@@ -559,7 +559,7 @@ UINT WINAPI MsiViewGetColumnInfo(MSIHANDLE hView, MSICOLINFO info, MSIHANDLE *hR
MSIRECORD
*
rec
=
NULL
;
UINT
r
;
TRACE
(
"%
l
d %d %p
\n
"
,
hView
,
info
,
hRec
);
TRACE
(
"%d %d %p
\n
"
,
hView
,
info
,
hRec
);
if
(
!
hRec
)
return
ERROR_INVALID_PARAMETER
;
...
...
@@ -611,7 +611,7 @@ UINT WINAPI MsiViewModify( MSIHANDLE hView, MSIMODIFY eModifyMode,
MSIRECORD
*
rec
=
NULL
;
UINT
r
=
ERROR_FUNCTION_FAILED
;
TRACE
(
"%
ld %x %l
d
\n
"
,
hView
,
eModifyMode
,
hRecord
);
TRACE
(
"%
d %x %
d
\n
"
,
hView
,
eModifyMode
,
hRecord
);
query
=
msihandle2msiinfo
(
hView
,
MSIHANDLETYPE_VIEW
);
if
(
!
query
)
...
...
@@ -635,7 +635,7 @@ MSIDBERROR WINAPI MsiViewGetErrorW( MSIHANDLE handle, LPWSTR szColumnNameBuffer,
MSIDBERROR
r
=
MSIDBERROR_NOERROR
;
DWORD
len
;
FIXME
(
"%
l
d %p %p - returns empty error string
\n
"
,
FIXME
(
"%d %p %p - returns empty error string
\n
"
,
handle
,
szColumnNameBuffer
,
pcchBuf
);
if
(
!
pcchBuf
)
...
...
@@ -667,7 +667,7 @@ MSIDBERROR WINAPI MsiViewGetErrorA( MSIHANDLE handle, LPSTR szColumnNameBuffer,
MSIDBERROR
r
=
MSIDBERROR_NOERROR
;
DWORD
len
;
FIXME
(
"%
l
d %p %p - returns empty error string
\n
"
,
FIXME
(
"%d %p %p - returns empty error string
\n
"
,
handle
,
szColumnNameBuffer
,
pcchBuf
);
if
(
!
pcchBuf
)
...
...
@@ -764,7 +764,7 @@ UINT WINAPI MsiDatabaseApplyTransformA( MSIHANDLE hdb,
LPWSTR
wstr
;
UINT
ret
;
TRACE
(
"%
l
d %s %d
\n
"
,
hdb
,
debugstr_a
(
szTransformFile
),
iErrorCond
);
TRACE
(
"%d %s %d
\n
"
,
hdb
,
debugstr_a
(
szTransformFile
),
iErrorCond
);
wstr
=
strdupAtoW
(
szTransformFile
);
if
(
szTransformFile
&&
!
wstr
)
...
...
@@ -780,7 +780,7 @@ UINT WINAPI MsiDatabaseApplyTransformA( MSIHANDLE hdb,
UINT
WINAPI
MsiDatabaseGenerateTransformA
(
MSIHANDLE
hdb
,
MSIHANDLE
hdbref
,
LPCSTR
szTransformFile
,
int
iReserved1
,
int
iReserved2
)
{
FIXME
(
"%
ld %ld %s %d %d
\n
"
,
hdb
,
hdbref
,
FIXME
(
"%
d %d %s %d %d
\n
"
,
hdb
,
hdbref
,
debugstr_a
(
szTransformFile
),
iReserved1
,
iReserved2
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
...
...
@@ -788,7 +788,7 @@ UINT WINAPI MsiDatabaseGenerateTransformA( MSIHANDLE hdb, MSIHANDLE hdbref,
UINT
WINAPI
MsiDatabaseGenerateTransformW
(
MSIHANDLE
hdb
,
MSIHANDLE
hdbref
,
LPCWSTR
szTransformFile
,
int
iReserved1
,
int
iReserved2
)
{
FIXME
(
"%
ld %ld %s %d %d
\n
"
,
hdb
,
hdbref
,
FIXME
(
"%
d %d %s %d %d
\n
"
,
hdb
,
hdbref
,
debugstr_w
(
szTransformFile
),
iReserved1
,
iReserved2
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
...
...
@@ -798,7 +798,7 @@ UINT WINAPI MsiDatabaseCommit( MSIHANDLE hdb )
MSIDATABASE
*
db
;
UINT
r
;
TRACE
(
"%
l
d
\n
"
,
hdb
);
TRACE
(
"%d
\n
"
,
hdb
);
db
=
msihandle2msiinfo
(
hdb
,
MSIHANDLETYPE_DATABASE
);
if
(
!
db
)
...
...
@@ -904,7 +904,7 @@ UINT WINAPI MsiDatabaseGetPrimaryKeysW( MSIHANDLE hdb,
MSIDATABASE
*
db
;
UINT
r
;
TRACE
(
"%
l
d %s %p
\n
"
,
hdb
,
debugstr_w
(
table
),
phRec
);
TRACE
(
"%d %s %p
\n
"
,
hdb
,
debugstr_w
(
table
),
phRec
);
db
=
msihandle2msiinfo
(
hdb
,
MSIHANDLETYPE_DATABASE
);
if
(
!
db
)
...
...
@@ -949,7 +949,7 @@ UINT WINAPI MsiDatabaseGetPrimaryKeysA(MSIHANDLE hdb,
LPWSTR
szwTable
=
NULL
;
UINT
r
;
TRACE
(
"%
l
d %s %p
\n
"
,
hdb
,
debugstr_a
(
table
),
phRec
);
TRACE
(
"%d %s %p
\n
"
,
hdb
,
debugstr_a
(
table
),
phRec
);
if
(
table
)
{
...
...
@@ -969,7 +969,7 @@ MSICONDITION WINAPI MsiDatabaseIsTablePersistentA(
LPWSTR
szwTableName
=
NULL
;
MSICONDITION
r
;
TRACE
(
"%
l
x %s
\n
"
,
hDatabase
,
debugstr_a
(
szTableName
));
TRACE
(
"%x %s
\n
"
,
hDatabase
,
debugstr_a
(
szTableName
));
if
(
szTableName
)
{
...
...
@@ -989,7 +989,7 @@ MSICONDITION WINAPI MsiDatabaseIsTablePersistentW(
MSIDATABASE
*
db
;
MSICONDITION
r
;
TRACE
(
"%
l
x %s
\n
"
,
hDatabase
,
debugstr_w
(
szTableName
));
TRACE
(
"%x %s
\n
"
,
hDatabase
,
debugstr_w
(
szTableName
));
db
=
msihandle2msiinfo
(
hDatabase
,
MSIHANDLETYPE_DATABASE
);
if
(
!
db
)
...
...
dlls/msi/package.c
View file @
6bd893a9
...
...
@@ -1027,7 +1027,7 @@ MSIHANDLE WINAPI MsiGetActiveDatabase(MSIHANDLE hInstall)
MSIHANDLE
handle
=
0
;
IWineMsiRemotePackage
*
remote_package
;
TRACE
(
"(%
l
d)
\n
"
,
hInstall
);
TRACE
(
"(%d)
\n
"
,
hInstall
);
package
=
msihandle2msiinfo
(
hInstall
,
MSIHANDLETYPE_PACKAGE
);
if
(
package
)
...
...
@@ -1486,7 +1486,7 @@ static UINT MSI_GetProperty( MSIHANDLE handle, LPCWSTR name,
UINT
r
=
ERROR_FUNCTION_FAILED
;
LPCWSTR
val
=
NULL
;
TRACE
(
"%
l
u %s %p %p
\n
"
,
handle
,
debugstr_w
(
name
),
TRACE
(
"%u %s %p %p
\n
"
,
handle
,
debugstr_w
(
name
),
szValueBuf
->
str
.
w
,
pchValueBuf
);
if
(
!
name
)
...
...
dlls/msi/preview.c
View file @
6bd893a9
...
...
@@ -68,7 +68,7 @@ UINT WINAPI MsiEnableUIPreview( MSIHANDLE hdb, MSIHANDLE* phPreview )
MSIPREVIEW
*
preview
;
UINT
r
=
ERROR_FUNCTION_FAILED
;
TRACE
(
"%
l
d %p
\n
"
,
hdb
,
phPreview
);
TRACE
(
"%d %p
\n
"
,
hdb
,
phPreview
);
db
=
msihandle2msiinfo
(
hdb
,
MSIHANDLETYPE_DATABASE
);
if
(
!
db
)
...
...
@@ -137,7 +137,7 @@ UINT WINAPI MsiPreviewDialogW( MSIHANDLE hPreview, LPCWSTR szDialogName )
MSIPREVIEW
*
preview
;
UINT
r
;
TRACE
(
"%
l
d %s
\n
"
,
hPreview
,
debugstr_w
(
szDialogName
));
TRACE
(
"%d %s
\n
"
,
hPreview
,
debugstr_w
(
szDialogName
));
preview
=
msihandle2msiinfo
(
hPreview
,
MSIHANDLETYPE_PREVIEW
);
if
(
!
preview
)
...
...
@@ -155,7 +155,7 @@ UINT WINAPI MsiPreviewDialogA( MSIHANDLE hPreview, LPCSTR szDialogName )
UINT
r
;
LPWSTR
strW
=
NULL
;
TRACE
(
"%
l
d %s
\n
"
,
hPreview
,
debugstr_a
(
szDialogName
));
TRACE
(
"%d %s
\n
"
,
hPreview
,
debugstr_a
(
szDialogName
));
if
(
szDialogName
)
{
...
...
@@ -171,7 +171,7 @@ UINT WINAPI MsiPreviewDialogA( MSIHANDLE hPreview, LPCSTR szDialogName )
UINT
WINAPI
MsiPreviewBillboardW
(
MSIHANDLE
hPreview
,
LPCWSTR
szControlName
,
LPCWSTR
szBillboard
)
{
FIXME
(
"%
l
d %s %s
\n
"
,
hPreview
,
debugstr_w
(
szControlName
),
FIXME
(
"%d %s %s
\n
"
,
hPreview
,
debugstr_w
(
szControlName
),
debugstr_w
(
szBillboard
));
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
...
...
@@ -179,7 +179,7 @@ UINT WINAPI MsiPreviewBillboardW( MSIHANDLE hPreview, LPCWSTR szControlName,
UINT
WINAPI
MsiPreviewBillboardA
(
MSIHANDLE
hPreview
,
LPCSTR
szControlName
,
LPCSTR
szBillboard
)
{
FIXME
(
"%
l
d %s %s
\n
"
,
hPreview
,
debugstr_a
(
szControlName
),
FIXME
(
"%d %s %s
\n
"
,
hPreview
,
debugstr_a
(
szControlName
),
debugstr_a
(
szBillboard
));
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
dlls/msi/record.c
View file @
6bd893a9
...
...
@@ -116,7 +116,7 @@ UINT WINAPI MsiRecordGetFieldCount( MSIHANDLE handle )
MSIRECORD
*
rec
;
UINT
ret
;
TRACE
(
"%
l
d
\n
"
,
handle
);
TRACE
(
"%d
\n
"
,
handle
);
rec
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_RECORD
);
if
(
!
rec
)
...
...
@@ -229,7 +229,7 @@ int WINAPI MsiRecordGetInteger( MSIHANDLE handle, UINT iField)
MSIRECORD
*
rec
;
UINT
ret
;
TRACE
(
"%
l
d %d
\n
"
,
handle
,
iField
);
TRACE
(
"%d %d
\n
"
,
handle
,
iField
);
rec
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_RECORD
);
if
(
!
rec
)
...
...
@@ -248,7 +248,7 @@ UINT WINAPI MsiRecordClearData( MSIHANDLE handle )
MSIRECORD
*
rec
;
UINT
i
;
TRACE
(
"%
l
d
\n
"
,
handle
);
TRACE
(
"%d
\n
"
,
handle
);
rec
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_RECORD
);
if
(
!
rec
)
...
...
@@ -286,7 +286,7 @@ UINT WINAPI MsiRecordSetInteger( MSIHANDLE handle, UINT iField, int iVal )
MSIRECORD
*
rec
;
UINT
ret
;
TRACE
(
"%
l
d %u %d
\n
"
,
handle
,
iField
,
iVal
);
TRACE
(
"%d %u %d
\n
"
,
handle
,
iField
,
iVal
);
rec
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_RECORD
);
if
(
!
rec
)
...
...
@@ -316,7 +316,7 @@ BOOL WINAPI MsiRecordIsNull( MSIHANDLE handle, UINT iField )
MSIRECORD
*
rec
;
UINT
ret
;
TRACE
(
"%
l
d %d
\n
"
,
handle
,
iField
);
TRACE
(
"%d %d
\n
"
,
handle
,
iField
);
rec
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_RECORD
);
if
(
!
rec
)
...
...
@@ -388,7 +388,7 @@ UINT WINAPI MsiRecordGetStringA(MSIHANDLE handle, UINT iField,
MSIRECORD
*
rec
;
UINT
ret
;
TRACE
(
"%
l
d %d %p %p
\n
"
,
handle
,
iField
,
szValue
,
pcchValue
);
TRACE
(
"%d %d %p %p
\n
"
,
handle
,
iField
,
szValue
,
pcchValue
);
rec
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_RECORD
);
if
(
!
rec
)
...
...
@@ -464,7 +464,7 @@ UINT WINAPI MsiRecordGetStringW(MSIHANDLE handle, UINT iField,
MSIRECORD
*
rec
;
UINT
ret
;
TRACE
(
"%
l
d %d %p %p
\n
"
,
handle
,
iField
,
szValue
,
pcchValue
);
TRACE
(
"%d %d %p %p
\n
"
,
handle
,
iField
,
szValue
,
pcchValue
);
rec
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_RECORD
);
if
(
!
rec
)
...
...
@@ -514,7 +514,7 @@ UINT WINAPI MsiRecordDataSize(MSIHANDLE handle, UINT iField)
MSIRECORD
*
rec
;
UINT
ret
;
TRACE
(
"%
l
d %d
\n
"
,
handle
,
iField
);
TRACE
(
"%d %d
\n
"
,
handle
,
iField
);
rec
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_RECORD
);
if
(
!
rec
)
...
...
@@ -556,7 +556,7 @@ UINT WINAPI MsiRecordSetStringA( MSIHANDLE handle, UINT iField, LPCSTR szValue )
MSIRECORD
*
rec
;
UINT
ret
;
TRACE
(
"%
l
d %d %s
\n
"
,
handle
,
iField
,
debugstr_a
(
szValue
));
TRACE
(
"%d %d %s
\n
"
,
handle
,
iField
,
debugstr_a
(
szValue
));
rec
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_RECORD
);
if
(
!
rec
)
...
...
@@ -599,7 +599,7 @@ UINT WINAPI MsiRecordSetStringW( MSIHANDLE handle, UINT iField, LPCWSTR szValue
MSIRECORD
*
rec
;
UINT
ret
;
TRACE
(
"%
l
d %d %s
\n
"
,
handle
,
iField
,
debugstr_w
(
szValue
));
TRACE
(
"%d %d %s
\n
"
,
handle
,
iField
,
debugstr_w
(
szValue
));
rec
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_RECORD
);
if
(
!
rec
)
...
...
@@ -719,7 +719,7 @@ UINT WINAPI MsiRecordSetStreamA(MSIHANDLE hRecord, UINT iField, LPCSTR szFilenam
LPWSTR
wstr
=
NULL
;
UINT
ret
;
TRACE
(
"%
l
d %d %s
\n
"
,
hRecord
,
iField
,
debugstr_a
(
szFilename
));
TRACE
(
"%d %d %s
\n
"
,
hRecord
,
iField
,
debugstr_a
(
szFilename
));
if
(
szFilename
)
{
...
...
@@ -738,7 +738,7 @@ UINT WINAPI MsiRecordSetStreamW(MSIHANDLE handle, UINT iField, LPCWSTR szFilenam
MSIRECORD
*
rec
;
UINT
ret
;
TRACE
(
"%
l
d %d %s
\n
"
,
handle
,
iField
,
debugstr_w
(
szFilename
));
TRACE
(
"%d %d %s
\n
"
,
handle
,
iField
,
debugstr_w
(
szFilename
));
rec
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_RECORD
);
if
(
!
rec
)
...
...
@@ -808,7 +808,7 @@ UINT WINAPI MsiRecordReadStream(MSIHANDLE handle, UINT iField, char *buf, LPDWOR
MSIRECORD
*
rec
;
UINT
ret
;
TRACE
(
"%
l
d %d %p %p
\n
"
,
handle
,
iField
,
buf
,
sz
);
TRACE
(
"%d %d %p %p
\n
"
,
handle
,
iField
,
buf
,
sz
);
rec
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_RECORD
);
if
(
!
rec
)
...
...
dlls/msi/suminfo.c
View file @
6bd893a9
...
...
@@ -466,7 +466,7 @@ UINT WINAPI MsiGetSummaryInformationW( MSIHANDLE hDatabase,
MSIDATABASE
*
db
;
UINT
ret
=
ERROR_FUNCTION_FAILED
;
TRACE
(
"%
l
d %s %d %p
\n
"
,
hDatabase
,
debugstr_w
(
szDatabase
),
TRACE
(
"%d %s %d %p
\n
"
,
hDatabase
,
debugstr_w
(
szDatabase
),
uiUpdateCount
,
pHandle
);
if
(
!
pHandle
)
...
...
@@ -529,7 +529,7 @@ UINT WINAPI MsiGetSummaryInformationA(MSIHANDLE hDatabase,
LPWSTR
szwDatabase
=
NULL
;
UINT
ret
;
TRACE
(
"%
ld %s %d %p
\n
"
,
hDatabase
,
debugstr_a
(
szDatabase
),
TRACE
(
"%
d %s %d %p
\n
"
,
hDatabase
,
debugstr_a
(
szDatabase
),
uiUpdateCount
,
pHandle
);
if
(
szDatabase
)
...
...
@@ -550,7 +550,7 @@ UINT WINAPI MsiSummaryInfoGetPropertyCount(MSIHANDLE hSummaryInfo, PUINT pCount)
{
MSISUMMARYINFO
*
si
;
TRACE
(
"%
l
d %p
\n
"
,
hSummaryInfo
,
pCount
);
TRACE
(
"%d %p
\n
"
,
hSummaryInfo
,
pCount
);
si
=
msihandle2msiinfo
(
hSummaryInfo
,
MSIHANDLETYPE_SUMMARYINFO
);
if
(
!
si
)
...
...
@@ -570,7 +570,7 @@ static UINT get_prop( MSIHANDLE handle, UINT uiProperty, UINT *puiDataType,
PROPVARIANT
*
prop
;
UINT
ret
=
ERROR_SUCCESS
;
TRACE
(
"%
l
d %d %p %p %p %p %p
\n
"
,
handle
,
uiProperty
,
puiDataType
,
TRACE
(
"%d %d %p %p %p %p %p
\n
"
,
handle
,
uiProperty
,
puiDataType
,
piValue
,
pftValue
,
str
,
pcchValueBuf
);
if
(
uiProperty
>=
MSI_MAX_PROPS
)
...
...
@@ -668,7 +668,7 @@ UINT WINAPI MsiSummaryInfoGetPropertyA(
{
awstring
str
;
TRACE
(
"%
l
d %d %p %p %p %p %p
\n
"
,
handle
,
uiProperty
,
puiDataType
,
TRACE
(
"%d %d %p %p %p %p %p
\n
"
,
handle
,
uiProperty
,
puiDataType
,
piValue
,
pftValue
,
szValueBuf
,
pcchValueBuf
);
str
.
unicode
=
FALSE
;
...
...
@@ -684,7 +684,7 @@ UINT WINAPI MsiSummaryInfoGetPropertyW(
{
awstring
str
;
TRACE
(
"%
l
d %d %p %p %p %p %p
\n
"
,
handle
,
uiProperty
,
puiDataType
,
TRACE
(
"%d %d %p %p %p %p %p
\n
"
,
handle
,
uiProperty
,
puiDataType
,
piValue
,
pftValue
,
szValueBuf
,
pcchValueBuf
);
str
.
unicode
=
TRUE
;
...
...
@@ -701,7 +701,7 @@ static UINT set_prop( MSIHANDLE handle, UINT uiProperty, UINT uiDataType,
PROPVARIANT
*
prop
;
UINT
type
,
len
,
ret
=
ERROR_SUCCESS
;
TRACE
(
"%
l
d %u %u %i %p %p
\n
"
,
handle
,
uiProperty
,
uiDataType
,
TRACE
(
"%d %u %u %i %p %p
\n
"
,
handle
,
uiProperty
,
uiDataType
,
iValue
,
pftValue
,
str
);
type
=
get_type
(
uiProperty
);
...
...
@@ -773,7 +773,7 @@ UINT WINAPI MsiSummaryInfoSetPropertyW( MSIHANDLE handle, UINT uiProperty,
{
awcstring
str
;
TRACE
(
"%
l
d %u %u %i %p %s
\n
"
,
handle
,
uiProperty
,
uiDataType
,
TRACE
(
"%d %u %u %i %p %s
\n
"
,
handle
,
uiProperty
,
uiDataType
,
iValue
,
pftValue
,
debugstr_w
(
szValue
)
);
str
.
unicode
=
TRUE
;
...
...
@@ -786,7 +786,7 @@ UINT WINAPI MsiSummaryInfoSetPropertyA( MSIHANDLE handle, UINT uiProperty,
{
awcstring
str
;
TRACE
(
"%
l
d %u %u %i %p %s
\n
"
,
handle
,
uiProperty
,
uiDataType
,
TRACE
(
"%d %u %u %i %p %s
\n
"
,
handle
,
uiProperty
,
uiDataType
,
iValue
,
pftValue
,
debugstr_a
(
szValue
)
);
str
.
unicode
=
FALSE
;
...
...
@@ -802,7 +802,7 @@ UINT WINAPI MsiSummaryInfoPersist( MSIHANDLE handle )
HRESULT
r
;
UINT
ret
=
ERROR_FUNCTION_FAILED
;
TRACE
(
"%
l
d
\n
"
,
handle
);
TRACE
(
"%d
\n
"
,
handle
);
si
=
msihandle2msiinfo
(
handle
,
MSIHANDLETYPE_SUMMARYINFO
);
if
(
!
si
)
...
...
dlls/msi/tests/db.c
View file @
6bd893a9
...
...
@@ -2347,7 +2347,7 @@ static MSIHANDLE package_from_db(MSIHANDLE hdb)
CHAR
szPackage
[
10
];
MSIHANDLE
hPackage
;
sprintf
(
szPackage
,
"#%
l
i"
,
hdb
);
sprintf
(
szPackage
,
"#%i"
,
hdb
);
res
=
MsiOpenPackage
(
szPackage
,
&
hPackage
);
if
(
res
!=
ERROR_SUCCESS
)
return
0
;
...
...
@@ -6175,7 +6175,7 @@ static void test_dbtopackage(void)
r
=
add_custom_action_entry
(
hdb
,
"'SetProp', 51, 'MYPROP', 'grape'"
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
sprintf
(
package
,
"#%
l
i"
,
hdb
);
sprintf
(
package
,
"#%i"
,
hdb
);
r
=
MsiOpenPackage
(
package
,
&
hpkg
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
...
...
@@ -6234,7 +6234,7 @@ static void test_dbtopackage(void)
r
=
add_custom_action_entry
(
hdb
,
"'SetProp', 51, 'MYPROP', 'grape'"
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
sprintf
(
package
,
"#%
l
i"
,
hdb
);
sprintf
(
package
,
"#%i"
,
hdb
);
r
=
MsiOpenPackage
(
package
,
&
hpkg
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
...
...
dlls/msi/tests/format.c
View file @
6bd893a9
...
...
@@ -228,7 +228,7 @@ static MSIHANDLE package_from_db(MSIHANDLE hdb)
CHAR
szPackage
[
10
];
MSIHANDLE
hPackage
;
sprintf
(
szPackage
,
"#%
l
i"
,
hdb
);
sprintf
(
szPackage
,
"#%i"
,
hdb
);
res
=
MsiOpenPackage
(
szPackage
,
&
hPackage
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to open package
\n
"
);
...
...
@@ -303,7 +303,7 @@ static MSIHANDLE helper_createpackage( const char *szName )
res
=
MsiCloseHandle
(
suminfo
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to close suminfo
\n
"
);
sprintf
(
szPackage
,
"#%
l
i"
,
hdb
);
sprintf
(
szPackage
,
"#%i"
,
hdb
);
res
=
MsiOpenPackage
(
szPackage
,
&
hPackage
);
ok
(
res
==
ERROR_SUCCESS
,
"Failed to open package
\n
"
);
...
...
dlls/msi/tests/package.c
View file @
6bd893a9
...
...
@@ -665,7 +665,7 @@ static MSIHANDLE package_from_db(MSIHANDLE hdb)
CHAR
szPackage
[
10
];
MSIHANDLE
hPackage
;
sprintf
(
szPackage
,
"#%
l
i"
,
hdb
);
sprintf
(
szPackage
,
"#%i"
,
hdb
);
res
=
MsiOpenPackage
(
szPackage
,
&
hPackage
);
if
(
res
!=
ERROR_SUCCESS
)
return
0
;
...
...
@@ -2116,7 +2116,7 @@ static void test_msipackage(void)
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
/* database exists, but is emtpy */
sprintf
(
name
,
"#%
l
d"
,
hdb
);
sprintf
(
name
,
"#%d"
,
hdb
);
r
=
MsiOpenPackage
(
name
,
&
hpack
);
ok
(
r
==
ERROR_INSTALL_PACKAGE_INVALID
,
"Expected ERROR_INSTALL_PACKAGE_INVALID, got %d
\n
"
,
r
);
...
...
@@ -2134,7 +2134,7 @@ static void test_msipackage(void)
ok
(
r
==
ERROR_SUCCESS
,
"failed to create InstallExecuteSequence table
\n
"
);
/* a few key tables exist */
sprintf
(
name
,
"#%
l
d"
,
hdb
);
sprintf
(
name
,
"#%d"
,
hdb
);
r
=
MsiOpenPackage
(
name
,
&
hpack
);
ok
(
r
==
ERROR_INSTALL_PACKAGE_INVALID
,
"Expected ERROR_INSTALL_PACKAGE_INVALID, got %d
\n
"
,
r
);
...
...
@@ -2146,7 +2146,7 @@ static void test_msipackage(void)
r
=
MsiOpenDatabase
(
msifile
,
MSIDBOPEN_CREATE
,
&
hdb
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
sprintf
(
name
,
"#%
l
d"
,
hdb
);
sprintf
(
name
,
"#%d"
,
hdb
);
/* The following summary information props must exist:
* - PID_REVNUMBER
...
...
@@ -8888,7 +8888,7 @@ static void test_sourcedir(void)
r
=
add_directory_entry
(
hdb
,
"'TARGETDIR', '', 'SourceDir'"
);
ok
(
r
==
S_OK
,
"failed
\n
"
);
sprintf
(
package
,
"#%
l
i"
,
hdb
);
sprintf
(
package
,
"#%i"
,
hdb
);
r
=
MsiOpenPackage
(
package
,
&
hpkg
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
...
...
@@ -8997,7 +8997,7 @@ static void test_sourcedir(void)
MsiCloseHandle
(
hpkg
);
/* reset the package state */
sprintf
(
package
,
"#%
l
i"
,
hdb
);
sprintf
(
package
,
"#%i"
,
hdb
);
r
=
MsiOpenPackage
(
package
,
&
hpkg
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
...
...
include/msi.h
View file @
6bd893a9
...
...
@@ -27,7 +27,7 @@ extern "C" {
#include <wincrypt.h>
#endif
typedef
unsigned
long
MSIHANDLE
;
typedef
ULONG
MSIHANDLE
;
typedef
enum
tagINSTALLSTATE
{
...
...
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