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
9ec33414
Commit
9ec33414
authored
Mar 23, 2006
by
James Hawkins
Committed by
Alexandre Julliard
Mar 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack: Forward the FileSaveRestore API to their Unicode counterparts.
parent
7eaaa93a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
11 deletions
+74
-11
advpack.spec
dlls/advpack/advpack.spec
+2
-2
files.c
dlls/advpack/files.c
+72
-9
No files found.
dlls/advpack/advpack.spec
View file @
9ec33414
...
...
@@ -23,10 +23,10 @@
@ stdcall FileSaveMarkNotExistW(wstr wstr wstr)
@ stdcall FileSaveMarkNotExist(str str str) FileSaveMarkNotExistA
@ stdcall FileSaveRestoreA(ptr str str str long)
#
stdcall FileSaveRestoreW(ptr wstr wstr wstr long)
@
stdcall FileSaveRestoreW(ptr wstr wstr wstr long)
@ stdcall FileSaveRestore(ptr str str str long) FileSaveRestoreA
@ stdcall FileSaveRestoreOnINFA(ptr str str str str str long)
#
stdcall FileSaveRestoreOnINFW(ptr wstr wstr wstr wstr wstr long)
@
stdcall FileSaveRestoreOnINFW(ptr wstr wstr wstr wstr wstr long)
@ stdcall FileSaveRestoreOnINF(ptr str str str str str long) FileSaveRestoreOnINFA
@ stdcall GetVersionFromFileA(str ptr ptr long)
@ stdcall GetVersionFromFileW(wstr ptr ptr long)
...
...
dlls/advpack/files.c
View file @
9ec33414
...
...
@@ -758,6 +758,34 @@ HRESULT WINAPI FileSaveMarkNotExistW(LPWSTR pszFileList, LPWSTR pszDir, LPWSTR p
/***********************************************************************
* FileSaveRestoreA (ADVPACK.@)
*
* See FileSaveRestoreW.
*/
HRESULT
WINAPI
FileSaveRestoreA
(
HWND
hDlg
,
LPSTR
pszFileList
,
LPSTR
pszDir
,
LPSTR
pszBaseName
,
DWORD
dwFlags
)
{
UNICODE_STRING
filelist
,
dir
,
basename
;
HRESULT
hr
;
TRACE
(
"(%p, %s, %s, %s, %ld)
\n
"
,
hDlg
,
pszFileList
,
pszDir
,
pszBaseName
,
dwFlags
);
RtlCreateUnicodeStringFromAsciiz
(
&
filelist
,
pszFileList
);
RtlCreateUnicodeStringFromAsciiz
(
&
dir
,
pszDir
);
RtlCreateUnicodeStringFromAsciiz
(
&
basename
,
pszBaseName
);
hr
=
FileSaveRestoreW
(
hDlg
,
filelist
.
Buffer
,
dir
.
Buffer
,
basename
.
Buffer
,
dwFlags
);
RtlFreeUnicodeString
(
&
filelist
);
RtlFreeUnicodeString
(
&
dir
);
RtlFreeUnicodeString
(
&
basename
);
return
hr
;
}
/***********************************************************************
* FileSaveRestoreW (ADVPACK.@)
*
* Saves or restores the files in the specified file list.
*
* PARAMS
...
...
@@ -777,11 +805,11 @@ HRESULT WINAPI FileSaveMarkNotExistW(LPWSTR pszFileList, LPWSTR pszDir, LPWSTR p
* BUGS
* Unimplemented.
*/
HRESULT
WINAPI
FileSaveRestore
A
(
HWND
hDlg
,
LPSTR
pszFileList
,
LP
STR
pszDir
,
LP
STR
pszBaseName
,
DWORD
dwFlags
)
HRESULT
WINAPI
FileSaveRestore
W
(
HWND
hDlg
,
LPWSTR
pszFileList
,
LPW
STR
pszDir
,
LPW
STR
pszBaseName
,
DWORD
dwFlags
)
{
FIXME
(
"(%p, %
p, %p, %p, %ld) stub
\n
"
,
hDlg
,
pszFileList
,
pszDir
,
pszBaseName
,
dwFlags
);
FIXME
(
"(%p, %
s, %s, %s, %ld) stub
\n
"
,
hDlg
,
debugstr_w
(
pszFileList
)
,
debugstr_w
(
pszDir
),
debugstr_w
(
pszBaseName
)
,
dwFlags
);
return
E_FAIL
;
}
...
...
@@ -789,6 +817,40 @@ HRESULT WINAPI FileSaveRestoreA(HWND hDlg, LPSTR pszFileList, LPSTR pszDir,
/***********************************************************************
* FileSaveRestoreOnINFA (ADVPACK.@)
*
* See FileSaveRestoreOnINFW.
*/
HRESULT
WINAPI
FileSaveRestoreOnINFA
(
HWND
hWnd
,
LPCSTR
pszTitle
,
LPCSTR
pszINF
,
LPCSTR
pszSection
,
LPCSTR
pszBackupDir
,
LPCSTR
pszBaseBackupFile
,
DWORD
dwFlags
)
{
UNICODE_STRING
title
,
inf
,
section
;
UNICODE_STRING
backupdir
,
backupfile
;
HRESULT
hr
;
TRACE
(
"(%p, %s, %s, %s, %s, %s, %ld) stub
\n
"
,
hWnd
,
pszTitle
,
pszINF
,
pszSection
,
pszBackupDir
,
pszBaseBackupFile
,
dwFlags
);
RtlCreateUnicodeStringFromAsciiz
(
&
title
,
pszTitle
);
RtlCreateUnicodeStringFromAsciiz
(
&
inf
,
pszINF
);
RtlCreateUnicodeStringFromAsciiz
(
&
section
,
pszSection
);
RtlCreateUnicodeStringFromAsciiz
(
&
backupdir
,
pszBackupDir
);
RtlCreateUnicodeStringFromAsciiz
(
&
backupfile
,
pszBaseBackupFile
);
hr
=
FileSaveRestoreOnINFW
(
hWnd
,
title
.
Buffer
,
inf
.
Buffer
,
section
.
Buffer
,
backupdir
.
Buffer
,
backupfile
.
Buffer
,
dwFlags
);
RtlFreeUnicodeString
(
&
title
);
RtlFreeUnicodeString
(
&
inf
);
RtlFreeUnicodeString
(
&
section
);
RtlFreeUnicodeString
(
&
backupdir
);
RtlFreeUnicodeString
(
&
backupfile
);
return
hr
;
}
/***********************************************************************
* FileSaveRestoreOnINFW (ADVPACK.@)
*
*
* PARAMS
* hWnd [I] Handle to the window used for the display.
...
...
@@ -809,12 +871,13 @@ HRESULT WINAPI FileSaveRestoreA(HWND hDlg, LPSTR pszFileList, LPSTR pszDir,
* BUGS
* Unimplemented.
*/
HRESULT
WINAPI
FileSaveRestoreOnINF
A
(
HWND
hWnd
,
LPCSTR
pszTitle
,
LPC
STR
pszINF
,
LPCSTR
pszSection
,
LPC
STR
pszBackupDir
,
LPC
STR
pszBaseBackupFile
,
DWORD
dwFlags
)
HRESULT
WINAPI
FileSaveRestoreOnINF
W
(
HWND
hWnd
,
LPCWSTR
pszTitle
,
LPCW
STR
pszINF
,
LPCWSTR
pszSection
,
LPCW
STR
pszBackupDir
,
LPCW
STR
pszBaseBackupFile
,
DWORD
dwFlags
)
{
FIXME
(
"(%p, %p, %p, %p, %p, %p, %ld) stub
\n
"
,
hWnd
,
pszTitle
,
pszINF
,
pszSection
,
pszBackupDir
,
pszBaseBackupFile
,
dwFlags
);
FIXME
(
"(%p, %p, %p, %p, %p, %p, %ld) stub
\n
"
,
hWnd
,
debugstr_w
(
pszTitle
),
debugstr_w
(
pszINF
),
debugstr_w
(
pszSection
),
debugstr_w
(
pszBackupDir
),
debugstr_w
(
pszBaseBackupFile
),
dwFlags
);
return
E_FAIL
;
}
...
...
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