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
18c057ee
Commit
18c057ee
authored
Nov 20, 2023
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Nov 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Add missing const modifiers.
parent
f0bad1ec
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
datainit.c
dlls/oledb32/datainit.c
+5
-5
dslocator.c
dlls/oledb32/dslocator.c
+3
-3
oledb_private.h
dlls/oledb32/oledb_private.h
+1
-1
msdasc.idl
include/msdasc.idl
+3
-3
No files found.
dlls/oledb32/datainit.c
View file @
18c057ee
...
@@ -631,7 +631,7 @@ static WCHAR *strstriW(const WCHAR *str, const WCHAR *sub)
...
@@ -631,7 +631,7 @@ static WCHAR *strstriW(const WCHAR *str, const WCHAR *sub)
return
r
;
return
r
;
}
}
HRESULT
get_data_source
(
IUnknown
*
outer
,
DWORD
clsctx
,
LP
W
STR
initstring
,
REFIID
riid
,
IUnknown
**
datasource
)
HRESULT
get_data_source
(
IUnknown
*
outer
,
DWORD
clsctx
,
LP
COLE
STR
initstring
,
REFIID
riid
,
IUnknown
**
datasource
)
{
{
static
const
WCHAR
providerW
[]
=
L"Provider="
;
static
const
WCHAR
providerW
[]
=
L"Provider="
;
BOOL
datasource_created
=
FALSE
;
BOOL
datasource_created
=
FALSE
;
...
@@ -768,7 +768,7 @@ HRESULT get_data_source(IUnknown *outer, DWORD clsctx, LPWSTR initstring, REFIID
...
@@ -768,7 +768,7 @@ HRESULT get_data_source(IUnknown *outer, DWORD clsctx, LPWSTR initstring, REFIID
}
}
static
HRESULT
WINAPI
datainit_GetDataSource
(
IDataInitialize
*
iface
,
IUnknown
*
outer
,
DWORD
clsctx
,
static
HRESULT
WINAPI
datainit_GetDataSource
(
IDataInitialize
*
iface
,
IUnknown
*
outer
,
DWORD
clsctx
,
LP
W
STR
initstring
,
REFIID
riid
,
IUnknown
**
datasource
)
LP
COLE
STR
initstring
,
REFIID
riid
,
IUnknown
**
datasource
)
{
{
datainit
*
This
=
impl_from_IDataInitialize
(
iface
);
datainit
*
This
=
impl_from_IDataInitialize
(
iface
);
...
@@ -977,7 +977,7 @@ static HRESULT WINAPI datainit_CreateDBInstanceEx(IDataInitialize *iface, REFCLS
...
@@ -977,7 +977,7 @@ static HRESULT WINAPI datainit_CreateDBInstanceEx(IDataInitialize *iface, REFCLS
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
datainit_LoadStringFromStorage
(
IDataInitialize
*
iface
,
LP
W
STR
pwszFileName
,
static
HRESULT
WINAPI
datainit_LoadStringFromStorage
(
IDataInitialize
*
iface
,
LP
COLE
STR
pwszFileName
,
LPWSTR
*
ppwszInitializationString
)
LPWSTR
*
ppwszInitializationString
)
{
{
datainit
*
This
=
impl_from_IDataInitialize
(
iface
);
datainit
*
This
=
impl_from_IDataInitialize
(
iface
);
...
@@ -987,8 +987,8 @@ static HRESULT WINAPI datainit_LoadStringFromStorage(IDataInitialize *iface, LPW
...
@@ -987,8 +987,8 @@ static HRESULT WINAPI datainit_LoadStringFromStorage(IDataInitialize *iface, LPW
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
datainit_WriteStringToStorage
(
IDataInitialize
*
iface
,
LP
W
STR
pwszFileName
,
static
HRESULT
WINAPI
datainit_WriteStringToStorage
(
IDataInitialize
*
iface
,
LP
COLE
STR
pwszFileName
,
LP
W
STR
pwszInitializationString
,
DWORD
dwCreationDisposition
)
LP
COLE
STR
pwszInitializationString
,
DWORD
dwCreationDisposition
)
{
{
datainit
*
This
=
impl_from_IDataInitialize
(
iface
);
datainit
*
This
=
impl_from_IDataInitialize
(
iface
);
...
...
dlls/oledb32/dslocator.c
View file @
18c057ee
...
@@ -707,7 +707,7 @@ static ULONG WINAPI datainitialize_Release(IDataInitialize *iface)
...
@@ -707,7 +707,7 @@ static ULONG WINAPI datainitialize_Release(IDataInitialize *iface)
}
}
static
HRESULT
WINAPI
datainitialize_GetDataSource
(
IDataInitialize
*
iface
,
static
HRESULT
WINAPI
datainitialize_GetDataSource
(
IDataInitialize
*
iface
,
IUnknown
*
outer
,
DWORD
context
,
LP
W
STR
initstring
,
REFIID
riid
,
IUnknown
**
datasource
)
IUnknown
*
outer
,
DWORD
context
,
LP
COLE
STR
initstring
,
REFIID
riid
,
IUnknown
**
datasource
)
{
{
TRACE
(
"(%p)->(%p %#lx %s %s %p)
\n
"
,
iface
,
outer
,
context
,
debugstr_w
(
initstring
),
debugstr_guid
(
riid
),
TRACE
(
"(%p)->(%p %#lx %s %s %p)
\n
"
,
iface
,
outer
,
context
,
debugstr_w
(
initstring
),
debugstr_guid
(
riid
),
datasource
);
datasource
);
...
@@ -738,13 +738,13 @@ static HRESULT WINAPI datainitialize_CreateDBInstanceEx(IDataInitialize *iface,
...
@@ -738,13 +738,13 @@ static HRESULT WINAPI datainitialize_CreateDBInstanceEx(IDataInitialize *iface,
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
datainitialize_LoadStringFromStorage
(
IDataInitialize
*
iface
,
LP
W
STR
filename
,
LPWSTR
*
initstring
)
static
HRESULT
WINAPI
datainitialize_LoadStringFromStorage
(
IDataInitialize
*
iface
,
LP
COLE
STR
filename
,
LPWSTR
*
initstring
)
{
{
FIXME
(
"(%p)->(%s %p): stub
\n
"
,
iface
,
debugstr_w
(
filename
),
initstring
);
FIXME
(
"(%p)->(%s %p): stub
\n
"
,
iface
,
debugstr_w
(
filename
),
initstring
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
datainitialize_WriteStringToStorage
(
IDataInitialize
*
iface
,
LP
WSTR
filename
,
LPW
STR
initstring
,
static
HRESULT
WINAPI
datainitialize_WriteStringToStorage
(
IDataInitialize
*
iface
,
LP
COLESTR
filename
,
LPCOLE
STR
initstring
,
DWORD
disposition
)
DWORD
disposition
)
{
{
FIXME
(
"(%p)->(%s %s %#lx): stub
\n
"
,
iface
,
debugstr_w
(
filename
),
debugstr_w
(
initstring
),
disposition
);
FIXME
(
"(%p)->(%s %s %#lx): stub
\n
"
,
iface
,
debugstr_w
(
filename
),
debugstr_w
(
initstring
),
disposition
);
...
...
dlls/oledb32/oledb_private.h
View file @
18c057ee
...
@@ -23,7 +23,7 @@ HRESULT create_error_info(IUnknown *outer, void **obj);
...
@@ -23,7 +23,7 @@ HRESULT create_error_info(IUnknown *outer, void **obj);
HRESULT
create_oledb_rowpos
(
IUnknown
*
outer
,
void
**
obj
);
HRESULT
create_oledb_rowpos
(
IUnknown
*
outer
,
void
**
obj
);
HRESULT
create_dslocator
(
IUnknown
*
outer
,
void
**
obj
);
HRESULT
create_dslocator
(
IUnknown
*
outer
,
void
**
obj
);
HRESULT
get_data_source
(
IUnknown
*
outer
,
DWORD
clsctx
,
LP
W
STR
initstring
,
REFIID
riid
,
HRESULT
get_data_source
(
IUnknown
*
outer
,
DWORD
clsctx
,
LP
COLE
STR
initstring
,
REFIID
riid
,
IUnknown
**
datasource
);
IUnknown
**
datasource
);
extern
HINSTANCE
instance
;
extern
HINSTANCE
instance
;
include/msdasc.idl
View file @
18c057ee
...
@@ -92,7 +92,7 @@ library MSDASC
...
@@ -92,7 +92,7 @@ library MSDASC
interface
IDataInitialize
:
IUnknown
interface
IDataInitialize
:
IUnknown
{
{
HRESULT
GetDataSource
(
[
in
]
IUnknown
*
pUnkOuter
,
[
in
]
DWORD
dwClsCtx
,
HRESULT
GetDataSource
(
[
in
]
IUnknown
*
pUnkOuter
,
[
in
]
DWORD
dwClsCtx
,
[
in
]
LP
W
STR
pwszInitializationString
,
[
in
]
REFIID
riid
,
[
in
]
LP
COLE
STR
pwszInitializationString
,
[
in
]
REFIID
riid
,
[
in
,
out
]
IUnknown
**
ppDataSource
)
;
[
in
,
out
]
IUnknown
**
ppDataSource
)
;
HRESULT
GetInitializationString
(
[
in
]
IUnknown
*
pDataSource
,
[
in
]
boolean
fIncludePassword
,
HRESULT
GetInitializationString
(
[
in
]
IUnknown
*
pDataSource
,
[
in
]
boolean
fIncludePassword
,
...
@@ -113,9 +113,9 @@ library MSDASC
...
@@ -113,9 +113,9 @@ library MSDASC
[
in
]
DWORD
cmq
,
[
in
,
size_is
(
cmq
)
]
const
IID
**
iids
,
[
out
,
size_is
(
cmq
)
]
IUnknown
**
ifs
,
[
in
]
DWORD
cmq
,
[
in
,
size_is
(
cmq
)
]
const
IID
**
iids
,
[
out
,
size_is
(
cmq
)
]
IUnknown
**
ifs
,
[
out
,
size_is
(
cmq
)
]
HRESULT
*
hr
)
;
[
out
,
size_is
(
cmq
)
]
HRESULT
*
hr
)
;
HRESULT
LoadStringFromStorage
(
[
in
]
LP
WSTR
pwszFileName
,
[
out
]
LPWSTR
*
ppwszInitializationString
)
;
HRESULT
LoadStringFromStorage
(
[
in
]
LP
COLESTR
pwszFileName
,
[
out
]
LPOLESTR
*
ppwszInitializationString
)
;
HRESULT
WriteStringToStorage
(
[
in
]
LP
WSTR
pwszFileName
,
[
in
]
LPW
STR
pwszInitializationString
,
HRESULT
WriteStringToStorage
(
[
in
]
LP
COLESTR
pwszFileName
,
[
in
]
LPCOLE
STR
pwszInitializationString
,
[
in
]
DWORD
dwCreationDisposition
)
;
[
in
]
DWORD
dwCreationDisposition
)
;
}
}
...
...
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