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
2429d1b6
Commit
2429d1b6
authored
Aug 29, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advpack: Cast-qual warnings fix.
parent
c8106fe7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
files.c
dlls/advpack/files.c
+5
-4
No files found.
dlls/advpack/files.c
View file @
2429d1b6
...
@@ -116,7 +116,7 @@ HRESULT WINAPI AddDelBackupEntryW(LPCWSTR lpcszFileList, LPCWSTR lpcszBackupDir,
...
@@ -116,7 +116,7 @@ HRESULT WINAPI AddDelBackupEntryW(LPCWSTR lpcszFileList, LPCWSTR lpcszBackupDir,
LPCWSTR
lpcszBaseName
,
DWORD
dwFlags
)
LPCWSTR
lpcszBaseName
,
DWORD
dwFlags
)
{
{
WCHAR
szIniPath
[
MAX_PATH
];
WCHAR
szIniPath
[
MAX_PATH
];
LPWSTR
szString
=
NULL
;
LP
C
WSTR
szString
=
NULL
;
static
const
WCHAR
szBackupEntry
[]
=
{
static
const
WCHAR
szBackupEntry
[]
=
{
'-'
,
'1'
,
','
,
'0'
,
','
,
'0'
,
','
,
'0'
,
','
,
'0'
,
','
,
'0'
,
','
,
'-'
,
'1'
,
0
'-'
,
'1'
,
','
,
'0'
,
','
,
'0'
,
','
,
'0'
,
','
,
'0'
,
','
,
'0'
,
','
,
'-'
,
'1'
,
0
...
@@ -144,7 +144,7 @@ HRESULT WINAPI AddDelBackupEntryW(LPCWSTR lpcszFileList, LPCWSTR lpcszBackupDir,
...
@@ -144,7 +144,7 @@ HRESULT WINAPI AddDelBackupEntryW(LPCWSTR lpcszFileList, LPCWSTR lpcszBackupDir,
SetFileAttributesW
(
szIniPath
,
FILE_ATTRIBUTE_NORMAL
);
SetFileAttributesW
(
szIniPath
,
FILE_ATTRIBUTE_NORMAL
);
if
(
dwFlags
&
AADBE_ADD_ENTRY
)
if
(
dwFlags
&
AADBE_ADD_ENTRY
)
szString
=
(
LPWSTR
)
szBackupEntry
;
szString
=
szBackupEntry
;
else
if
(
dwFlags
&
AADBE_DEL_ENTRY
)
else
if
(
dwFlags
&
AADBE_DEL_ENTRY
)
szString
=
NULL
;
szString
=
NULL
;
...
@@ -249,7 +249,8 @@ HRESULT WINAPI AdvInstallFileW(HWND hwnd, LPCWSTR lpszSourceDir, LPCWSTR lpszSou
...
@@ -249,7 +249,8 @@ HRESULT WINAPI AdvInstallFileW(HWND hwnd, LPCWSTR lpszSourceDir, LPCWSTR lpszSou
DWORD
dwFlags
,
DWORD
dwReserved
)
DWORD
dwFlags
,
DWORD
dwReserved
)
{
{
PSP_FILE_CALLBACK_W
pFileCallback
;
PSP_FILE_CALLBACK_W
pFileCallback
;
LPWSTR
szPath
,
szDestFilename
;
LPWSTR
szDestFilename
;
LPCWSTR
szPath
;
WCHAR
szRootPath
[
ROOT_LENGTH
];
WCHAR
szRootPath
[
ROOT_LENGTH
];
DWORD
dwLen
,
dwLastError
;
DWORD
dwLen
,
dwLastError
;
HSPFILEQ
fileQueue
;
HSPFILEQ
fileQueue
;
...
@@ -270,7 +271,7 @@ HRESULT WINAPI AdvInstallFileW(HWND hwnd, LPCWSTR lpszSourceDir, LPCWSTR lpszSou
...
@@ -270,7 +271,7 @@ HRESULT WINAPI AdvInstallFileW(HWND hwnd, LPCWSTR lpszSourceDir, LPCWSTR lpszSou
dwLastError
=
ERROR_SUCCESS
;
dwLastError
=
ERROR_SUCCESS
;
lstrcpynW
(
szRootPath
,
lpszSourceDir
,
ROOT_LENGTH
);
lstrcpynW
(
szRootPath
,
lpszSourceDir
,
ROOT_LENGTH
);
szPath
=
(
LPWSTR
)
lpszSourceDir
+
ROOT_LENGTH
;
szPath
=
lpszSourceDir
+
ROOT_LENGTH
;
/* use lpszSourceFile as destination filename if lpszDestFile is NULL */
/* use lpszSourceFile as destination filename if lpszDestFile is NULL */
if
(
lpszDestFile
)
if
(
lpszDestFile
)
...
...
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