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
6fc84548
Commit
6fc84548
authored
Sep 12, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Sep 13, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxdiagn: Cast-qual warning fix.
parent
6a55b52e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
provider.c
dlls/dxdiagn/provider.c
+2
-2
No files found.
dlls/dxdiagn/provider.c
View file @
6fc84548
...
...
@@ -145,7 +145,7 @@ HRESULT DXDiag_CreateDXDiagProvider(LPCLASSFACTORY iface, LPUNKNOWN punkOuter, R
static
HRESULT
DXDiag_AddFileDescContainer
(
IDxDiagContainer
*
pSubCont
,
const
WCHAR
*
szFilePath
,
const
WCHAR
*
szFileName
)
{
HRESULT
hr
=
S_OK
;
/**/
static
const
WCHAR
szSlashSep
[]
=
{
'\\'
,
0
};
static
WCHAR
szSlashSep
[]
=
{
'\\'
,
0
};
static
const
WCHAR
szPath
[]
=
{
's'
,
'z'
,
'P'
,
'a'
,
't'
,
'h'
,
0
};
static
const
WCHAR
szName
[]
=
{
's'
,
'z'
,
'N'
,
'a'
,
'm'
,
'e'
,
0
};
static
const
WCHAR
szVersion
[]
=
{
's'
,
'z'
,
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
0
};
...
...
@@ -179,7 +179,7 @@ static HRESULT DXDiag_AddFileDescContainer(IDxDiagContainer* pSubCont, const WCH
retval
=
GetFileVersionInfoSizeW
(
szFile
,
&
hdl
);
pVersionInfo
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
retval
);
hr
=
GetFileVersionInfoW
(
szFile
,
0
,
retval
,
pVersionInfo
);
boolret
=
VerQueryValueW
(
pVersionInfo
,
(
LPWSTR
)
szSlashSep
,
(
LPVOID
)
&
pFileInfo
,
&
uiLength
);
boolret
=
VerQueryValueW
(
pVersionInfo
,
szSlashSep
,
(
LPVOID
)
&
pFileInfo
,
&
uiLength
);
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
SysAllocString
(
szFile
);
hr
=
IDxDiagContainerImpl_AddProp
(
pSubCont
,
szPath
,
&
v
);
...
...
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