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
934ed50d
Commit
934ed50d
authored
Jan 13, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version: Remove superfluous pointer casts.
parent
e202baab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
info.c
dlls/version/info.c
+5
-5
resource.c
dlls/version/resource.c
+1
-1
info.c
dlls/version/tests/info.c
+1
-1
No files found.
dlls/version/info.c
View file @
934ed50d
...
...
@@ -547,7 +547,7 @@ BOOL WINAPI GetFileVersionInfoW( LPCWSTR filename, DWORD handle,
DWORD
datasize
,
LPVOID
data
)
{
DWORD
len
;
VS_VERSION_INFO_STRUCT32
*
vvis
=
(
VS_VERSION_INFO_STRUCT32
*
)
data
;
VS_VERSION_INFO_STRUCT32
*
vvis
=
data
;
TRACE
(
"(%s,%d,size=%d,data=%p)
\n
"
,
debugstr_w
(
filename
),
handle
,
datasize
,
data
);
...
...
@@ -769,7 +769,7 @@ BOOL WINAPI VerQueryValueA( LPCVOID pBlock, LPCSTR lpSubBlock,
{
static
const
char
rootA
[]
=
"
\\
"
;
static
const
char
varfileinfoA
[]
=
"
\\
VarFileInfo
\\
Translation"
;
const
VS_VERSION_INFO_STRUCT16
*
info
=
(
const
VS_VERSION_INFO_STRUCT16
*
)
pBlock
;
const
VS_VERSION_INFO_STRUCT16
*
info
=
pBlock
;
TRACE
(
"(%p,%s,%p,%p)
\n
"
,
pBlock
,
debugstr_a
(
lpSubBlock
),
lplpBuffer
,
puLen
);
...
...
@@ -806,7 +806,7 @@ BOOL WINAPI VerQueryValueA( LPCVOID pBlock, LPCSTR lpSubBlock,
LPSTR
lpBufferA
=
(
LPSTR
)
pBlock
+
info
->
wLength
+
4
;
DWORD
pos
=
(
LPCSTR
)
*
lplpBuffer
-
(
LPCSTR
)
pBlock
;
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
(
LPCWSTR
)
*
lplpBuffer
,
-
1
,
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
*
lplpBuffer
,
-
1
,
lpBufferA
+
pos
,
info
->
wLength
-
pos
,
NULL
,
NULL
);
*
lplpBuffer
=
lpBufferA
+
pos
;
*
puLen
=
len
;
...
...
@@ -828,7 +828,7 @@ BOOL WINAPI VerQueryValueW( LPCVOID pBlock, LPCWSTR lpSubBlock,
static
const
WCHAR
varfileinfoW
[]
=
{
'\\'
,
'V'
,
'a'
,
'r'
,
'F'
,
'i'
,
'l'
,
'e'
,
'I'
,
'n'
,
'f'
,
'o'
,
'\\'
,
'T'
,
'r'
,
'a'
,
'n'
,
's'
,
'l'
,
'a'
,
't'
,
'i'
,
'o'
,
'n'
,
0
};
const
VS_VERSION_INFO_STRUCT32
*
info
=
(
const
VS_VERSION_INFO_STRUCT32
*
)
pBlock
;
const
VS_VERSION_INFO_STRUCT32
*
info
=
pBlock
;
TRACE
(
"(%p,%s,%p,%p)
\n
"
,
pBlock
,
debugstr_w
(
lpSubBlock
),
lplpBuffer
,
puLen
);
...
...
@@ -866,7 +866,7 @@ BOOL WINAPI VerQueryValueW( LPCVOID pBlock, LPCWSTR lpSubBlock,
DWORD
pos
=
(
LPCSTR
)
*
lplpBuffer
-
(
LPCSTR
)
pBlock
;
DWORD
max
=
(
info
->
wLength
-
sizeof
(
VS_FIXEDFILEINFO
))
*
4
-
info
->
wLength
;
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
(
LPCSTR
)
*
lplpBuffer
,
-
1
,
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
*
lplpBuffer
,
-
1
,
lpBufferW
+
pos
,
max
/
sizeof
(
WCHAR
)
-
pos
);
*
lplpBuffer
=
lpBufferW
+
pos
;
*
puLen
=
len
;
...
...
dlls/version/resource.c
View file @
934ed50d
...
...
@@ -343,7 +343,7 @@ static BOOL find_pe_resource( HFILE lzfd, LPCSTR typeid, LPCSTR resid,
/* Find resource */
resDir
=
resSection
+
(
resDataDir
->
VirtualAddress
-
sections
[
i
].
VirtualAddress
);
resPtr
=
(
const
IMAGE_RESOURCE_DIRECTORY
*
)
resDir
;
resPtr
=
resDir
;
resPtr
=
find_entry_by_name
(
resPtr
,
typeid
,
resDir
);
if
(
!
resPtr
)
{
...
...
dlls/version/tests/info.c
View file @
934ed50d
...
...
@@ -383,7 +383,7 @@ static void test_32bit_win(void)
if
(
is_unicode_enabled
)
{
VS_VERSION_INFO_STRUCT32
*
vvis
=
(
VS_VERSION_INFO_STRUCT32
*
)
pVersionInfoW
;
VS_VERSION_INFO_STRUCT32
*
vvis
=
pVersionInfoW
;
ok
(
retvalW
==
((
vvis
->
wLength
*
2
)
+
4
)
||
retvalW
==
(
vvis
->
wLength
*
1
.
5
),
"Structure is not of the correct size
\n
"
);
}
...
...
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