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
cc41ac4c
Commit
cc41ac4c
authored
Nov 02, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Do not cast NULL.
parent
ea398097
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
autocomplete.c
dlls/shell32/autocomplete.c
+2
-2
shell.c
dlls/shell32/shell.c
+1
-1
No files found.
dlls/shell32/autocomplete.c
View file @
cc41ac4c
...
...
@@ -533,7 +533,7 @@ static LRESULT APIENTRY ACEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam,
WCHAR
*
msg
;
int
len
;
len
=
SendMessageW
(
This
->
hwndListBox
,
LB_GETTEXTLEN
,
sel
,
(
LPARAM
)
NULL
);
len
=
SendMessageW
(
This
->
hwndListBox
,
LB_GETTEXTLEN
,
sel
,
0
);
msg
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
(
len
+
1
)
*
sizeof
(
WCHAR
));
SendMessageW
(
This
->
hwndListBox
,
LB_GETTEXT
,
sel
,
(
LPARAM
)
msg
);
SendMessageW
(
hwnd
,
WM_SETTEXT
,
0
,
(
LPARAM
)
msg
);
...
...
@@ -555,7 +555,7 @@ static LRESULT APIENTRY ACEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam,
}
if
(
This
->
options
&
ACO_AUTOAPPEND
)
{
DWORD
b
;
SendMessageW
(
hwnd
,
EM_GETSEL
,
(
WPARAM
)
&
b
,
(
LPARAM
)
NULL
);
SendMessageW
(
hwnd
,
EM_GETSEL
,
(
WPARAM
)
&
b
,
0
);
if
(
b
>
1
)
{
hwndText
[
b
-
1
]
=
'\0'
;
}
else
{
...
...
dlls/shell32/shell.c
View file @
cc41ac4c
...
...
@@ -319,7 +319,7 @@ SEGPTR WINAPI FindEnvironmentString16(LPCSTR str)
if
(
lpString
)
/* offset should be small enough */
return
spEnv
+
(
lpString
-
lpEnv
);
return
(
SEGPTR
)
NULL
;
return
0
;
}
/*************************************************************************
...
...
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