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
96a42806
Commit
96a42806
authored
Apr 03, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Apr 04, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack: Forward RegSaveRestoreA to its Unicode counterpart.
parent
063a36b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
4 deletions
+35
-4
advpack.spec
dlls/advpack/advpack.spec
+1
-1
reg.c
dlls/advpack/reg.c
+34
-3
No files found.
dlls/advpack/advpack.spec
View file @
96a42806
...
...
@@ -56,7 +56,7 @@
@ stdcall RegRestoreAllW(ptr wstr long)
@ stdcall RegRestoreAll(ptr str long) RegRestoreAllA
@ stdcall RegSaveRestoreA(ptr str long str str str long)
#
stdcall RegSaveRestoreW(ptr wstr long wstr wstr wstr long)
@
stdcall RegSaveRestoreW(ptr wstr long wstr wstr wstr long)
@ stdcall RegSaveRestore(ptr str long str str str long) RegSaveRestoreA
@ stdcall RegSaveRestoreOnINFA(ptr str str str long long long)
# stdcall RegSaveRestoreOnINFW(ptr wstr wstr wstr long long long)
...
...
dlls/advpack/reg.c
View file @
96a42806
...
...
@@ -236,6 +236,37 @@ HRESULT WINAPI RegRestoreAllW(HWND hWnd, LPWSTR pszTitleString, HKEY hkBackupKey
/***********************************************************************
* RegSaveRestoreA (advpack.@)
*
* See RegSaveRestoreW.
*/
HRESULT
WINAPI
RegSaveRestoreA
(
HWND
hWnd
,
LPCSTR
pszTitleString
,
HKEY
hkBackupKey
,
LPCSTR
pcszRootKey
,
LPCSTR
pcszSubKey
,
LPCSTR
pcszValueName
,
DWORD
dwFlags
)
{
UNICODE_STRING
title
,
root
,
subkey
,
value
;
HRESULT
hr
;
TRACE
(
"(%p, %p, %p, %p, %p, %p, %ld)
\n
"
,
hWnd
,
pszTitleString
,
hkBackupKey
,
pcszRootKey
,
pcszSubKey
,
pcszValueName
,
dwFlags
);
RtlCreateUnicodeStringFromAsciiz
(
&
title
,
pszTitleString
);
RtlCreateUnicodeStringFromAsciiz
(
&
root
,
pcszRootKey
);
RtlCreateUnicodeStringFromAsciiz
(
&
subkey
,
pcszSubKey
);
RtlCreateUnicodeStringFromAsciiz
(
&
value
,
pcszValueName
);
hr
=
RegSaveRestoreW
(
hWnd
,
title
.
Buffer
,
hkBackupKey
,
root
.
Buffer
,
subkey
.
Buffer
,
value
.
Buffer
,
dwFlags
);
RtlFreeUnicodeString
(
&
title
);
RtlFreeUnicodeString
(
&
root
);
RtlFreeUnicodeString
(
&
subkey
);
RtlFreeUnicodeString
(
&
value
);
return
hr
;
}
/***********************************************************************
* RegSaveRestoreW (advpack.@)
*
* Saves or restores the specified registry value.
*
* PARAMS
...
...
@@ -254,9 +285,9 @@ HRESULT WINAPI RegRestoreAllW(HWND hWnd, LPWSTR pszTitleString, HKEY hkBackupKey
* BUGS
* Unimplemented.
*/
HRESULT
WINAPI
RegSaveRestore
A
(
HWND
hWnd
,
LPC
STR
pszTitleString
,
HKEY
hkBackupKey
,
LPCSTR
pcszRootKey
,
LPC
STR
pcszSubKey
,
LPC
STR
pcszValueName
,
DWORD
dwFlags
)
HRESULT
WINAPI
RegSaveRestore
W
(
HWND
hWnd
,
LPCW
STR
pszTitleString
,
HKEY
hkBackupKey
,
LPCWSTR
pcszRootKey
,
LPCW
STR
pcszSubKey
,
LPCW
STR
pcszValueName
,
DWORD
dwFlags
)
{
FIXME
(
"(%p, %p, %p, %p, %p, %p, %ld) stub
\n
"
,
hWnd
,
pszTitleString
,
hkBackupKey
,
pcszRootKey
,
pcszSubKey
,
pcszValueName
,
dwFlags
);
...
...
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