Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
00d81121
Commit
00d81121
authored
19 years ago
by
Paul Vriens
Committed by
Alexandre Julliard
19 years ago
Browse files
Options
Downloads
Patches
Plain Diff
New function VersionInfo32_QueryValue.
Made functions static.
parent
c1325424
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/version/info.c
+44
-31
44 additions, 31 deletions
dlls/version/info.c
with
44 additions
and
31 deletions
dlls/version/info.c
+
44
−
31
View file @
00d81121
...
...
@@ -194,7 +194,7 @@ typedef struct
/***********************************************************************
* ConvertVersionInfo32To16 [internal]
*/
void
ConvertVersionInfo32To16
(
VS_VERSION_INFO_STRUCT32
*
info32
,
static
void
ConvertVersionInfo32To16
(
VS_VERSION_INFO_STRUCT32
*
info32
,
VS_VERSION_INFO_STRUCT16
*
info16
)
{
/* Copy data onto local stack to prevent overwrites */
...
...
@@ -663,7 +663,7 @@ static VS_VERSION_INFO_STRUCT32 *VersionInfo32_FindChild( VS_VERSION_INFO_STRUCT
*
* Gets a value from a 16-bit NE resource
*/
BOOL
WINAPI
VersionInfo16_QueryValue
(
VS_VERSION_INFO_STRUCT16
*
info
,
LPCSTR
lpSubBlock
,
static
BOOL
WINAPI
VersionInfo16_QueryValue
(
VS_VERSION_INFO_STRUCT16
*
info
,
LPCSTR
lpSubBlock
,
LPVOID
*
lplpBuffer
,
UINT
*
puLen
)
{
while
(
*
lpSubBlock
)
...
...
@@ -697,6 +697,47 @@ BOOL WINAPI VersionInfo16_QueryValue( VS_VERSION_INFO_STRUCT16 *info, LPCSTR lpS
return
TRUE
;
}
/***********************************************************************
* VersionInfo32_QueryValue [internal]
*
* Gets a value from a 32-bit PE resource
*/
static
BOOL
WINAPI
VersionInfo32_QueryValue
(
VS_VERSION_INFO_STRUCT32
*
info
,
LPCWSTR
lpSubBlock
,
LPVOID
*
lplpBuffer
,
UINT
*
puLen
)
{
TRACE
(
"lpSubBlock : (%s)
\n
"
,
debugstr_w
(
lpSubBlock
));
while
(
*
lpSubBlock
)
{
/* Find next path component */
LPCWSTR
lpNextSlash
;
for
(
lpNextSlash
=
lpSubBlock
;
*
lpNextSlash
;
lpNextSlash
++
)
if
(
*
lpNextSlash
==
'\\'
)
break
;
/* Skip empty components */
if
(
lpNextSlash
==
lpSubBlock
)
{
lpSubBlock
++
;
continue
;
}
/* We have a non-empty component: search info for key */
info
=
VersionInfo32_FindChild
(
info
,
lpSubBlock
,
lpNextSlash
-
lpSubBlock
);
if
(
!
info
)
return
FALSE
;
/* Skip path component */
lpSubBlock
=
lpNextSlash
;
}
/* Return value */
*
lplpBuffer
=
VersionInfo32_Value
(
info
);
if
(
puLen
)
*
puLen
=
info
->
wValueLength
;
return
TRUE
;
}
/***********************************************************************
* VerQueryValueA [VERSION.@]
*/
...
...
@@ -743,33 +784,5 @@ BOOL WINAPI VerQueryValueW( LPVOID pBlock, LPCWSTR lpSubBlock,
return
ret
;
}
while
(
*
lpSubBlock
)
{
/* Find next path component */
LPCWSTR
lpNextSlash
;
for
(
lpNextSlash
=
lpSubBlock
;
*
lpNextSlash
;
lpNextSlash
++
)
if
(
*
lpNextSlash
==
'\\'
)
break
;
/* Skip empty components */
if
(
lpNextSlash
==
lpSubBlock
)
{
lpSubBlock
++
;
continue
;
}
/* We have a non-empty component: search info for key */
info
=
VersionInfo32_FindChild
(
info
,
lpSubBlock
,
lpNextSlash
-
lpSubBlock
);
if
(
!
info
)
return
FALSE
;
/* Skip path component */
lpSubBlock
=
lpNextSlash
;
}
/* Return value */
*
lplpBuffer
=
VersionInfo32_Value
(
info
);
if
(
puLen
)
*
puLen
=
info
->
wValueLength
;
return
TRUE
;
return
VersionInfo32_QueryValue
(
info
,
lpSubBlock
,
lplpBuffer
,
puLen
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment