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
34379155
Commit
34379155
authored
Feb 15, 2001
by
Lawson Whitney
Committed by
Alexandre Julliard
Feb 15, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If VerQueryValueA is called with a PE resource, translate the call to
VerQueryValueW.
parent
40a38f7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
info.c
dlls/version/info.c
+13
-2
No files found.
dlls/version/info.c
View file @
34379155
...
...
@@ -427,8 +427,19 @@ DWORD WINAPI VerQueryValueA( LPVOID pBlock, LPCSTR lpSubBlock,
VS_VERSION_INFO_STRUCT16
*
info
=
(
VS_VERSION_INFO_STRUCT16
*
)
pBlock
;
if
(
!
VersionInfoIs16
(
info
)
)
{
ERR
(
"called on PE resource!
\n
"
);
return
FALSE
;
INT
len
;
LPWSTR
wide_str
;
DWORD
give
;
/* <lawson_whitney@juno.com> Feb 2001 */
/* AOL 5.0 does this, expecting to get this: */
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
lpSubBlock
,
-
1
,
NULL
,
0
);
wide_str
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
lpSubBlock
,
-
1
,
wide_str
,
len
);
give
=
VerQueryValueW
(
pBlock
,
wide_str
,
lplpBuffer
,
puLen
);
HeapFree
(
GetProcessHeap
(),
0
,
wide_str
);
return
give
;
}
TRACE
(
"(%p,%s,%p,%p)
\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