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
cc277300
Commit
cc277300
authored
Jun 21, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Do not dump the version info when loading drivers.
parent
f533159b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
69 deletions
+0
-69
lolvldrv.c
dlls/winmm/lolvldrv.c
+0
-69
No files found.
dlls/winmm/lolvldrv.c
View file @
cc277300
...
...
@@ -103,68 +103,6 @@ BOOL MMDRV_Is32(unsigned int idx)
}
/**************************************************************************
* MMDRV_GetDescription32 [internal]
*/
static
BOOL
MMDRV_GetDescription32
(
const
char
*
fname
,
char
*
buf
,
int
buflen
)
{
OFSTRUCT
ofs
;
DWORD
h
;
LPVOID
ptr
=
0
;
LPVOID
val
;
DWORD
dw
;
BOOL
ret
=
FALSE
;
UINT
u
;
FARPROC
pGetFileVersionInfoSizeA
;
FARPROC
pGetFileVersionInfoA
;
FARPROC
pVerQueryValueA
;
HMODULE
hmodule
=
0
;
TRACE
(
"(%p, %p, %d)
\n
"
,
fname
,
buf
,
buflen
);
#define E(_x) do {TRACE _x;goto theEnd;} while(0)
if
(
OpenFile
(
fname
,
&
ofs
,
OF_EXIST
)
==
HFILE_ERROR
)
E
((
"Can't find file %s
\n
"
,
fname
));
if
(
!
(
hmodule
=
LoadLibraryA
(
"version.dll"
)))
goto
theEnd
;
if
(
!
(
pGetFileVersionInfoSizeA
=
GetProcAddress
(
hmodule
,
"GetFileVersionInfoSizeA"
)))
goto
theEnd
;
if
(
!
(
pGetFileVersionInfoA
=
GetProcAddress
(
hmodule
,
"GetFileVersionInfoA"
)))
goto
theEnd
;
if
(
!
(
pVerQueryValueA
=
GetProcAddress
(
hmodule
,
"VerQueryValueA"
)))
goto
theEnd
;
if
(
!
(
dw
=
pGetFileVersionInfoSizeA
(
ofs
.
szPathName
,
&
h
)))
E
((
"Can't get FVIS
\n
"
));
if
(
!
(
ptr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
dw
)))
E
((
"OOM
\n
"
));
if
(
!
pGetFileVersionInfoA
(
ofs
.
szPathName
,
h
,
dw
,
ptr
))
E
((
"Can't get FVI
\n
"
));
#define A(_x) if (pVerQueryValueA(ptr, "\\StringFileInfo\\040904B0\\" #_x, &val, &u)) \
TRACE(#_x " => %s\n", (LPSTR)val); else TRACE(#_x " @\n")
A
(
CompanyName
);
A
(
FileDescription
);
A
(
FileVersion
);
A
(
InternalName
);
A
(
LegalCopyright
);
A
(
OriginalFilename
);
A
(
ProductName
);
A
(
ProductVersion
);
A
(
Comments
);
A
(
LegalTrademarks
);
A
(
PrivateBuild
);
A
(
SpecialBuild
);
#undef A
if
(
!
pVerQueryValueA
(
ptr
,
"
\\
StringFileInfo
\\
040904B0
\\
ProductName"
,
&
val
,
&
u
))
E
((
"Can't get product name
\n
"
));
lstrcpynA
(
buf
,
val
,
buflen
);
#undef E
ret
=
TRUE
;
theEnd:
HeapFree
(
GetProcessHeap
(),
0
,
ptr
);
if
(
hmodule
)
FreeLibrary
(
hmodule
);
return
ret
;
}
/**************************************************************************
* MMDRV_GetNum [internal]
*/
UINT
MMDRV_GetNum
(
UINT
type
)
...
...
@@ -666,7 +604,6 @@ static BOOL MMDRV_Install(LPCSTR drvRegName, LPCSTR drvFileName, BOOL bIsMapper)
if
(
lpDrv
->
bIs32
)
{
WINEMM_msgFunc32
func
;
char
buffer
[
128
];
if
(
d
->
d
.
d32
.
hModule
)
{
#define A(_x,_y) AA(d->d.d32.hModule,_x,_y,32,GetProcAddress)
...
...
@@ -678,12 +615,6 @@ static BOOL MMDRV_Install(LPCSTR drvRegName, LPCSTR drvFileName, BOOL bIsMapper)
A
(
MMDRV_WAVEOUT
,
wodMessage
);
#undef A
}
if
(
TRACE_ON
(
winmm
))
{
if
(
MMDRV_GetDescription32
(
drvFileName
,
buffer
,
sizeof
(
buffer
)))
TRACE
(
"%s => %s
\n
"
,
drvFileName
,
buffer
);
else
TRACE
(
"%s => No description
\n
"
,
drvFileName
);
}
}
else
if
(
WINMM_CheckForMMSystem
()
&&
pFnLoadMMDrvFunc16
)
{
count
+=
pFnLoadMMDrvFunc16
(
drvFileName
,
d
,
lpDrv
);
}
...
...
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