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
2bacc463
Commit
2bacc463
authored
Aug 03, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't convert the return value on failure in VerQueryValueA/W.
parent
bc4a576a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
info.c
dlls/version/info.c
+4
-10
No files found.
dlls/version/info.c
View file @
2bacc463
...
...
@@ -702,9 +702,7 @@ BOOL WINAPI VerQueryValueA( LPVOID pBlock, LPCSTR lpSubBlock,
HeapFree
(
GetProcessHeap
(),
0
,
lpSubBlockW
);
if
((
!
strcasecmp
(
lpSubBlock
,
rootA
))
||
(
!
strcasecmp
(
lpSubBlock
,
varfileinfoA
)))
return
ret
;
else
if
(
ret
&&
strcasecmp
(
lpSubBlock
,
rootA
)
&&
strcasecmp
(
lpSubBlock
,
varfileinfoA
))
{
LPSTR
lplpBufferA
;
...
...
@@ -720,9 +718,8 @@ BOOL WINAPI VerQueryValueA( LPVOID pBlock, LPCSTR lpSubBlock,
*
puLen
=
len
;
HeapFree
(
GetProcessHeap
(),
0
,
lplpBufferA
);
return
ret
;
}
return
ret
;
}
return
VersionInfo16_QueryValue
(
info
,
lpSubBlock
,
lplpBuffer
,
puLen
);
...
...
@@ -761,9 +758,7 @@ BOOL WINAPI VerQueryValueW( LPVOID pBlock, LPCWSTR lpSubBlock,
HeapFree
(
GetProcessHeap
(),
0
,
lpSubBlockA
);
if
((
!
strcmpiW
(
lpSubBlock
,
rootW
))
||
(
!
strcmpiW
(
lpSubBlock
,
varfileinfoW
)))
return
ret
;
else
if
(
ret
&&
strcmpiW
(
lpSubBlock
,
rootW
)
&&
strcmpiW
(
lpSubBlock
,
varfileinfoW
))
{
LPWSTR
lplpBufferW
;
...
...
@@ -779,9 +774,8 @@ BOOL WINAPI VerQueryValueW( LPVOID pBlock, LPCWSTR lpSubBlock,
*
puLen
=
len
;
HeapFree
(
GetProcessHeap
(),
0
,
lplpBufferW
);
return
ret
;
}
return
ret
;
}
return
VersionInfo32_QueryValue
(
info
,
lpSubBlock
,
lplpBuffer
,
puLen
);
...
...
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