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
7e17eec7
Commit
7e17eec7
authored
Feb 27, 2014
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Feb 27, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dplayx: Use BOOL type where appropriate.
parent
ee484b31
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
dplay.c
dlls/dplayx/dplay.c
+1
-1
dplayx_global.c
dlls/dplayx/dplayx_global.c
+4
-4
No files found.
dlls/dplayx/dplay.c
View file @
7e17eec7
...
...
@@ -1660,7 +1660,7 @@ static HRESULT DP_IF_CreatePlayer( IDirectPlayImpl *This, void *lpMsgHdr, DPID *
}
#if 1
if
(
This
->
dp2
->
bHostInterface
==
FALSE
)
if
(
!
This
->
dp2
->
bHostInterface
)
{
/* Let the name server know about the creation of this player */
/* FIXME: Is this only to be done for the creation of a server player or
...
...
dlls/dplayx/dplayx_global.c
View file @
7e17eec7
...
...
@@ -83,7 +83,7 @@ static LPVOID lpSharedStaticData = NULL;
typedef
struct
{
DWORD
used
;
BOOL
used
;
DWORD
data
[
dwBlockSize
-
sizeof
(
DWORD
)];
}
DPLAYX_MEM_SLICE
;
...
...
@@ -103,7 +103,7 @@ static void DPLAYX_PrivHeapFree( LPVOID addr )
lpAddrStart
=
(
char
*
)
addr
-
sizeof
(
DWORD
);
/* Find block header */
dwBlockUsed
=
((
BYTE
*
)
lpAddrStart
-
(
BYTE
*
)
lpMemArea
)
/
dwBlockSize
;
lpMemArea
[
dwBlockUsed
].
used
=
0
;
lpMemArea
[
dwBlockUsed
].
used
=
FALSE
;
}
static
LPVOID
DPLAYX_PrivHeapAlloc
(
DWORD
flags
,
DWORD
size
)
...
...
@@ -119,12 +119,12 @@ static LPVOID DPLAYX_PrivHeapAlloc( DWORD flags, DWORD size )
/* Find blank area */
uBlockUsed
=
0
;
while
(
(
lpMemArea
[
uBlockUsed
].
used
!=
0
)
&&
(
uBlockUsed
<=
dwMaxBlock
)
)
{
uBlockUsed
++
;
}
while
(
lpMemArea
[
uBlockUsed
].
used
&&
uBlockUsed
<=
dwMaxBlock
)
{
uBlockUsed
++
;
}
if
(
uBlockUsed
<=
dwMaxBlock
)
{
/* Set the area used */
lpMemArea
[
uBlockUsed
].
used
=
1
;
lpMemArea
[
uBlockUsed
].
used
=
TRUE
;
lpvArea
=
lpMemArea
[
uBlockUsed
].
data
;
}
else
...
...
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