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
706df65c
Commit
706df65c
authored
Nov 02, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Do not cast NULL.
parent
880d944e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
comm16.c
dlls/user32/comm16.c
+2
-2
dde.c
dlls/user32/tests/dde.c
+3
-3
No files found.
dlls/user32/comm16.c
View file @
706df65c
...
...
@@ -752,14 +752,14 @@ SEGPTR WINAPI SetCommEventMask16(INT16 cid,UINT16 fuEvtMask)
TRACE
(
"cid %d,mask %d
\n
"
,
cid
,
fuEvtMask
);
if
((
ptr
=
GetDeviceStruct
(
cid
))
==
NULL
)
{
FIXME
(
"no handle for cid = %0x!
\n
"
,
cid
);
return
(
SEGPTR
)
NULL
;
return
0
;
}
ptr
->
eventmask
=
fuEvtMask
;
if
(
cid
&
FLAG_LPT
)
{
WARN
(
" cid %d not comm port
\n
"
,
cid
);
return
(
SEGPTR
)
NULL
;
return
0
;
}
/* it's a COM port ? -> modify flags */
stol
=
(
unsigned
char
*
)
COM
[
cid
].
unknown
+
COMM_MSR_OFFSET
;
...
...
dlls/user32/tests/dde.c
View file @
706df65c
...
...
@@ -1726,7 +1726,7 @@ static void test_FreeDDElParam(void)
HGLOBAL
val
,
hglobal
;
BOOL
ret
;
ret
=
FreeDDElParam
(
WM_DDE_INITIATE
,
(
LPARAM
)
NULL
);
ret
=
FreeDDElParam
(
WM_DDE_INITIATE
,
0
);
ok
(
ret
==
TRUE
,
"Expected TRUE, got %d
\n
"
,
ret
);
hglobal
=
GlobalAlloc
(
GMEM_DDESHARE
,
100
);
...
...
@@ -1975,7 +1975,7 @@ static void test_UnpackDDElParam(void)
/* NULL lParam */
lo
=
0xdead
;
hi
=
0xbeef
;
ret
=
UnpackDDElParam
(
WM_DDE_INITIATE
,
(
LPARAM
)
NULL
,
&
lo
,
&
hi
);
ret
=
UnpackDDElParam
(
WM_DDE_INITIATE
,
0
,
&
lo
,
&
hi
);
ok
(
ret
==
TRUE
,
"Expected TRUE, got %d
\n
"
,
ret
);
ok
(
lo
==
0
,
"Expected 0, got %08lx
\n
"
,
lo
);
ok
(
hi
==
0
,
"Expected 0, got %08lx
\n
"
,
hi
);
...
...
@@ -2012,7 +2012,7 @@ static void test_UnpackDDElParam(void)
lo
=
0xdead
;
hi
=
0xbeef
;
ret
=
UnpackDDElParam
(
WM_DDE_ADVISE
,
(
LPARAM
)
NULL
,
&
lo
,
&
hi
);
ret
=
UnpackDDElParam
(
WM_DDE_ADVISE
,
0
,
&
lo
,
&
hi
);
ok
(
ret
==
FALSE
,
"Expected FALSE, got %d
\n
"
,
ret
);
ok
(
lo
==
0
||
broken
(
lo
==
0xdead
),
/* win2k */
...
...
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