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
00a4a989
Commit
00a4a989
authored
Jul 15, 2005
by
Eric Pouech
Committed by
Alexandre Julliard
Jul 15, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of HeapValidate as it's not properly handled by some memory
management tools (Microquill for example).
parent
81f1ea1c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
+24
-6
driver.c
dlls/winmm/driver.c
+12
-3
lolvldrv.c
dlls/winmm/lolvldrv.c
+12
-3
No files found.
dlls/winmm/driver.c
View file @
00a4a989
...
...
@@ -32,6 +32,8 @@
#include "winemm.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "excpt.h"
#include "wine/exception.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
driver
);
...
...
@@ -75,10 +77,17 @@ LPWINE_DRIVER DRIVER_FindFromHDrvr(HDRVR hDrvr)
{
LPWINE_DRIVER
d
=
(
LPWINE_DRIVER
)
hDrvr
;
if
(
hDrvr
&&
HeapValidate
(
GetProcessHeap
(),
0
,
d
)
&&
d
->
dwMagic
==
WINE_DI_MAGIC
)
{
return
d
;
__TRY
{
if
(
d
&&
d
->
dwMagic
!=
WINE_DI_MAGIC
)
d
=
NULL
;
}
return
NULL
;
__EXCEPT
(
NULL
)
{
return
NULL
;
}
__ENDTRY
;
return
d
;
}
/**************************************************************************
...
...
dlls/winmm/lolvldrv.c
View file @
00a4a989
...
...
@@ -30,6 +30,8 @@
#include "winver.h"
#include "winemm.h"
#include "wine/debug.h"
#include "wine/exception.h"
#include "excpt.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
winmm
);
...
...
@@ -47,7 +49,7 @@ typedef struct tagWINE_LLTYPE {
MMDRV_UNMAPFUNC
UnMap32ATo16
;
/* low-func (in .drv) do not match */
LPDRVCALLBACK
Callback
;
/* handles callback for a specified type */
/* those attributes reflect the loaded/current situation for the type */
UINT
wMaxId
;
/* number of loaded devices (sum across all loaded drivers */
UINT
wMaxId
;
/* number of loaded devices (sum across all loaded drivers
)
*/
LPWINE_MLD
lpMlds
;
/* "static" mlds to access the part though device IDs */
int
nMapper
;
/* index to mapper */
}
WINE_LLTYPE
;
...
...
@@ -441,8 +443,15 @@ LPWINE_MLD MMDRV_Get(HANDLE _hndl, UINT type, BOOL bCanBeID)
hndl
=
hndl
&
~
0x8000
;
if
(
hndl
<
sizeof
(
MM_MLDrvs
)
/
sizeof
(
MM_MLDrvs
[
0
]))
{
mld
=
MM_MLDrvs
[
hndl
];
if
(
!
mld
||
!
HeapValidate
(
GetProcessHeap
(),
0
,
mld
)
||
mld
->
type
!=
type
)
mld
=
NULL
;
__TRY
{
if
(
mld
&&
mld
->
type
!=
type
)
mld
=
NULL
;
}
__EXCEPT
(
NULL
)
{
mld
=
NULL
;
}
__ENDTRY
;
}
hndl
=
hndl
|
0x8000
;
}
...
...
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