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
72c28cdb
Commit
72c28cdb
authored
Dec 06, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Remove unused fields.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2d6704ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
38 deletions
+0
-38
regstream.c
dlls/shlwapi/regstream.c
+0
-38
No files found.
dlls/shlwapi/regstream.c
View file @
72c28cdb
...
...
@@ -39,16 +39,10 @@ typedef struct
{
IStream
IStream_iface
;
LONG
ref
;
HKEY
hKey
;
LPBYTE
pbBuffer
;
DWORD
dwLength
;
DWORD
dwPos
;
DWORD
dwMode
;
union
{
LPSTR
keyNameA
;
LPWSTR
keyNameW
;
}
u
;
BOOL
bUnicode
;
}
ISHRegStream
;
static
inline
ISHRegStream
*
impl_from_IStream
(
IStream
*
iface
)
...
...
@@ -105,35 +99,6 @@ static ULONG WINAPI IStream_fnRelease(IStream *iface)
if
(
!
refCount
)
{
TRACE
(
" destroying SHReg IStream (%p)
\n
"
,
This
);
if
(
This
->
hKey
)
{
/* write back data in REG_BINARY */
if
(
This
->
dwMode
==
STGM_READWRITE
||
This
->
dwMode
==
STGM_WRITE
)
{
if
(
This
->
dwLength
)
{
if
(
This
->
bUnicode
)
RegSetValueExW
(
This
->
hKey
,
This
->
u
.
keyNameW
,
0
,
REG_BINARY
,
(
const
BYTE
*
)
This
->
pbBuffer
,
This
->
dwLength
);
else
RegSetValueExA
(
This
->
hKey
,
This
->
u
.
keyNameA
,
0
,
REG_BINARY
,
(
const
BYTE
*
)
This
->
pbBuffer
,
This
->
dwLength
);
}
else
{
if
(
This
->
bUnicode
)
RegDeleteValueW
(
This
->
hKey
,
This
->
u
.
keyNameW
);
else
RegDeleteValueA
(
This
->
hKey
,
This
->
u
.
keyNameA
);
}
}
RegCloseKey
(
This
->
hKey
);
}
HeapFree
(
GetProcessHeap
(),
0
,
This
->
u
.
keyNameA
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
pbBuffer
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
0
;
...
...
@@ -384,13 +349,10 @@ static ISHRegStream *IStream_Create(HKEY hKey, LPBYTE pbBuffer, DWORD dwLength)
{
regStream
->
IStream_iface
.
lpVtbl
=
&
rstvt
;
regStream
->
ref
=
1
;
regStream
->
hKey
=
hKey
;
regStream
->
pbBuffer
=
pbBuffer
;
regStream
->
dwLength
=
dwLength
;
regStream
->
dwPos
=
0
;
regStream
->
dwMode
=
STGM_READWRITE
;
regStream
->
u
.
keyNameA
=
NULL
;
regStream
->
bUnicode
=
FALSE
;
}
TRACE
(
"Returning %p
\n
"
,
regStream
);
return
regStream
;
...
...
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