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
9c91ba79
Commit
9c91ba79
authored
Dec 03, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Forward SHOpenRegStream() to shcore.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ee235188
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
109 deletions
+2
-109
regstream.c
dlls/shlwapi/regstream.c
+0
-107
shlwapi.spec
dlls/shlwapi/shlwapi.spec
+2
-2
No files found.
dlls/shlwapi/regstream.c
View file @
9c91ba79
...
...
@@ -369,70 +369,6 @@ static const IStreamVtbl rstvt =
IStream_fnClone
};
/* Methods overridden by the dummy stream */
/**************************************************************************
* IStream_fnAddRefDummy
*/
static
ULONG
WINAPI
IStream_fnAddRefDummy
(
IStream
*
iface
)
{
ISHRegStream
*
This
=
impl_from_IStream
(
iface
);
TRACE
(
"(%p)
\n
"
,
This
);
return
2
;
}
/**************************************************************************
* IStream_fnReleaseDummy
*/
static
ULONG
WINAPI
IStream_fnReleaseDummy
(
IStream
*
iface
)
{
ISHRegStream
*
This
=
impl_from_IStream
(
iface
);
TRACE
(
"(%p)
\n
"
,
This
);
return
1
;
}
/**************************************************************************
* IStream_fnReadDummy
*/
static
HRESULT
WINAPI
IStream_fnReadDummy
(
IStream
*
iface
,
LPVOID
pv
,
ULONG
cb
,
ULONG
*
pcbRead
)
{
if
(
pcbRead
)
*
pcbRead
=
0
;
return
E_NOTIMPL
;
}
static
const
IStreamVtbl
DummyRegStreamVTable
=
{
IStream_fnQueryInterface
,
IStream_fnAddRefDummy
,
/* Overridden */
IStream_fnReleaseDummy
,
/* Overridden */
IStream_fnReadDummy
,
/* Overridden */
IStream_fnWrite
,
IStream_fnSeek
,
IStream_fnSetSize
,
IStream_fnCopyTo
,
IStream_fnCommit
,
IStream_fnRevert
,
IStream_fnLockUnlockRegion
,
IStream_fnLockUnlockRegion
,
IStream_fnStat
,
IStream_fnClone
};
/* Dummy registry stream object */
static
ISHRegStream
rsDummyRegStream
=
{
{
&
DummyRegStreamVTable
},
1
,
NULL
,
NULL
,
0
,
0
,
STGM_READWRITE
,
{
NULL
},
FALSE
};
/**************************************************************************
* IStream_Create
*
...
...
@@ -590,49 +526,6 @@ IStream * WINAPI SHOpenRegStream2W(HKEY hKey, LPCWSTR pszSubkey,
}
/*************************************************************************
* SHOpenRegStreamA [SHLWAPI.@]
*
* Create a stream to read binary registry data.
*
* PARAMS
* hKey [I] Registry handle
* pszSubkey [I] The sub key name
* pszValue [I] The value name under the sub key
* dwMode [I] STGM mode for opening the file
*
* RETURNS
* Success: An IStream interface referring to the registry data
* Failure: If the registry key could not be opened or is not binary,
* A dummy (empty) IStream object is returned.
*/
IStream
*
WINAPI
SHOpenRegStreamA
(
HKEY
hkey
,
LPCSTR
pszSubkey
,
LPCSTR
pszValue
,
DWORD
dwMode
)
{
IStream
*
iStream
;
TRACE
(
"(%p,%s,%s,0x%08x)
\n
"
,
hkey
,
pszSubkey
,
pszValue
,
dwMode
);
iStream
=
SHOpenRegStream2A
(
hkey
,
pszSubkey
,
pszValue
,
dwMode
);
return
iStream
?
iStream
:
&
rsDummyRegStream
.
IStream_iface
;
}
/*************************************************************************
* SHOpenRegStreamW [SHLWAPI.@]
*
* See SHOpenRegStreamA.
*/
IStream
*
WINAPI
SHOpenRegStreamW
(
HKEY
hkey
,
LPCWSTR
pszSubkey
,
LPCWSTR
pszValue
,
DWORD
dwMode
)
{
IStream
*
iStream
;
TRACE
(
"(%p,%s,%s,0x%08x)
\n
"
,
hkey
,
debugstr_w
(
pszSubkey
),
debugstr_w
(
pszValue
),
dwMode
);
iStream
=
SHOpenRegStream2W
(
hkey
,
pszSubkey
,
pszValue
,
dwMode
);
return
iStream
?
iStream
:
&
rsDummyRegStream
.
IStream_iface
;
}
/*************************************************************************
* SHCreateStreamWrapper [SHLWAPI.@]
*
* Create an IStream object on a block of memory.
...
...
dlls/shlwapi/shlwapi.spec
View file @
9c91ba79
...
...
@@ -707,8 +707,8 @@
@ stdcall SHIsLowMemoryMachine(long)
@ stdcall SHOpenRegStream2A(long str str long)
@ stdcall SHOpenRegStream2W(long wstr wstr long)
@ stdcall SHOpenRegStreamA(long str str long)
@ stdcall SHOpenRegStreamW(long wstr wstr long)
@ stdcall SHOpenRegStreamA(long str str long)
shcore.SHOpenRegStreamA
@ stdcall SHOpenRegStreamW(long wstr wstr long)
shcore.SHOpenRegStreamW
@ stdcall SHQueryInfoKeyA(long ptr ptr ptr ptr)
@ stdcall SHQueryInfoKeyW(long ptr ptr ptr ptr)
@ stdcall SHQueryValueExA(long str ptr ptr ptr 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