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
fba5a59c
Commit
fba5a59c
authored
Aug 24, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 24, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better stub for MsiViewGetError.
parent
0946c42d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
8 deletions
+36
-8
msiquery.c
dlls/msi/msiquery.c
+34
-6
msiquery.h
include/msiquery.h
+2
-2
No files found.
dlls/msi/msiquery.c
View file @
fba5a59c
...
...
@@ -563,12 +563,16 @@ out:
return
r
;
}
UINT
WINAPI
MsiViewGetErrorW
(
MSIHANDLE
handle
,
LPWSTR
szColumnNameBuffer
,
MSIDBERROR
WINAPI
MsiViewGetErrorW
(
MSIHANDLE
handle
,
LPWSTR
szColumnNameBuffer
,
DWORD
*
pcchBuf
)
{
MSIQUERY
*
query
=
NULL
;
static
const
WCHAR
szError
[]
=
{
0
};
MSIDBERROR
r
=
MSIDBERROR_NOERROR
;
int
len
;
FIXME
(
"%ld %p %p
\n
"
,
handle
,
szColumnNameBuffer
,
pcchBuf
);
FIXME
(
"%ld %p %p - returns empty error string
\n
"
,
handle
,
szColumnNameBuffer
,
pcchBuf
);
if
(
!
pcchBuf
)
return
MSIDBERROR_INVALIDARG
;
...
...
@@ -577,16 +581,30 @@ UINT WINAPI MsiViewGetErrorW( MSIHANDLE handle, LPWSTR szColumnNameBuffer,
if
(
!
query
)
return
MSIDBERROR_INVALIDARG
;
len
=
lstrlenW
(
szError
);
if
(
szColumnNameBuffer
)
{
if
(
*
pcchBuf
>
len
)
lstrcpyW
(
szColumnNameBuffer
,
szError
);
else
r
=
MSIDBERROR_MOREDATA
;
}
*
pcchBuf
=
len
;
msiobj_release
(
&
query
->
hdr
);
return
MSIDBERROR_NOERROR
;
return
r
;
}
UINT
WINAPI
MsiViewGetErrorA
(
MSIHANDLE
handle
,
LPSTR
szColumnNameBuffer
,
MSIDBERROR
WINAPI
MsiViewGetErrorA
(
MSIHANDLE
handle
,
LPSTR
szColumnNameBuffer
,
DWORD
*
pcchBuf
)
{
static
const
CHAR
szError
[]
=
{
0
};
MSIQUERY
*
query
=
NULL
;
MSIDBERROR
r
=
MSIDBERROR_NOERROR
;
int
len
;
FIXME
(
"%ld %p %p
\n
"
,
handle
,
szColumnNameBuffer
,
pcchBuf
);
FIXME
(
"%ld %p %p - returns empty error string
\n
"
,
handle
,
szColumnNameBuffer
,
pcchBuf
);
if
(
!
pcchBuf
)
return
MSIDBERROR_INVALIDARG
;
...
...
@@ -595,8 +613,18 @@ UINT WINAPI MsiViewGetErrorA( MSIHANDLE handle, LPSTR szColumnNameBuffer,
if
(
!
query
)
return
MSIDBERROR_INVALIDARG
;
len
=
lstrlenA
(
szError
);
if
(
szColumnNameBuffer
)
{
if
(
*
pcchBuf
>
len
)
lstrcpyA
(
szColumnNameBuffer
,
szError
);
else
r
=
MSIDBERROR_MOREDATA
;
}
*
pcchBuf
=
len
;
msiobj_release
(
&
query
->
hdr
);
return
MSIDBERROR_NOERROR
;
return
r
;
}
UINT
WINAPI
MsiDatabaseApplyTransformA
(
MSIHANDLE
hdb
,
...
...
include/msiquery.h
View file @
fba5a59c
...
...
@@ -126,8 +126,8 @@ UINT WINAPI MsiViewClose(MSIHANDLE);
UINT
WINAPI
MsiDatabaseOpenViewA
(
MSIHANDLE
,
LPCSTR
,
MSIHANDLE
*
);
UINT
WINAPI
MsiDatabaseOpenViewW
(
MSIHANDLE
,
LPCWSTR
,
MSIHANDLE
*
);
#define MsiDatabaseOpenView WINELIB_NAME_AW(MsiDatabaseOpenView)
UINT
WINAPI
MsiViewGetErrorA
(
MSIHANDLE
,
LPSTR
,
DWORD
*
);
UINT
WINAPI
MsiViewGetErrorW
(
MSIHANDLE
,
LPWSTR
,
DWORD
*
);
MSIDBERROR
WINAPI
MsiViewGetErrorA
(
MSIHANDLE
,
LPSTR
,
DWORD
*
);
MSIDBERROR
WINAPI
MsiViewGetErrorW
(
MSIHANDLE
,
LPWSTR
,
DWORD
*
);
#define MsiViewGetError WINELIB_NAME_AW(MsiViewGetError)
/* record manipulation */
...
...
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