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
52db721a
Commit
52db721a
authored
Jan 19, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Jan 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Remove unneeded casts.
parent
e48bbc23
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
11 deletions
+10
-11
autocomplete.c
dlls/shell32/autocomplete.c
+1
-2
brsfolder.c
dlls/shell32/brsfolder.c
+1
-1
changenotify.c
dlls/shell32/changenotify.c
+2
-2
cpanelfolder.c
dlls/shell32/cpanelfolder.c
+4
-4
dde.c
dlls/shell32/dde.c
+1
-1
dialogs.c
dlls/shell32/dialogs.c
+1
-1
No files found.
dlls/shell32/autocomplete.c
View file @
52db721a
...
...
@@ -578,8 +578,7 @@ static LRESULT APIENTRY ACEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam,
if
(
hr
!=
S_OK
)
break
;
if
((
LPWSTR
)
strstrW
(
strs
,
hwndText
)
==
strs
)
{
if
(
strstrW
(
strs
,
hwndText
)
==
strs
)
{
if
(
This
->
options
&
ACO_AUTOAPPEND
)
{
SetWindowTextW
(
hwnd
,
strs
);
SendMessageW
(
hwnd
,
EM_SETSEL
,
lstrlenW
(
hwndText
),
lstrlenW
(
strs
));
...
...
dlls/shell32/brsfolder.c
View file @
52db721a
...
...
@@ -290,7 +290,7 @@ static HTREEITEM InsertTreeViewItem( browse_info *info, IShellFolder * lpsf,
tvins
.
hInsertAfter
=
NULL
;
tvins
.
hParent
=
hParent
;
return
(
HTREEITEM
)
TreeView_InsertItemW
(
info
->
hwndTreeView
,
&
tvins
);
return
TreeView_InsertItemW
(
info
->
hwndTreeView
,
&
tvins
);
}
/******************************************************************************
...
...
dlls/shell32/changenotify.c
View file @
52db721a
...
...
@@ -423,7 +423,7 @@ DWORD WINAPI NTSHChangeNotifyRegister(
FIXME
(
"(%p,0x%08x,0x%08x,0x%08x,0x%08x,%p):semi stub.
\n
"
,
hwnd
,
events1
,
events2
,
msg
,
count
,
idlist
);
return
(
DWORD
)
SHChangeNotifyRegister
(
hwnd
,
events1
,
events2
,
msg
,
count
,
idlist
);
return
SHChangeNotifyRegister
(
hwnd
,
events1
,
events2
,
msg
,
count
,
idlist
);
}
/*************************************************************************
...
...
@@ -448,7 +448,7 @@ HANDLE WINAPI SHChangeNotification_Lock(
{
idlist
=
SHAlloc
(
sizeof
(
LPCITEMIDLIST
*
)
*
node
->
cidl
);
for
(
i
=
0
;
i
<
node
->
cidl
;
i
++
)
idlist
[
i
]
=
(
LPCITEMIDLIST
)
node
->
pidlSignaled
;
idlist
[
i
]
=
node
->
pidlSignaled
;
*
lpwEventId
=
node
->
wSignalledEvent
;
*
lppidls
=
(
LPITEMIDLIST
*
)
idlist
;
node
->
wSignalledEvent
=
0
;
...
...
dlls/shell32/cpanelfolder.c
View file @
52db721a
...
...
@@ -288,7 +288,7 @@ static PIDLCPanelStruct* _ILGetCPanelPointer(LPCITEMIDLIST pidl)
LPPIDLDATA
pdata
=
_ILGetDataPointer
(
pidl
);
if
(
pdata
&&
pdata
->
type
==
PT_CPLAPPLET
)
return
(
PIDLCPanelStruct
*
)
&
(
pdata
->
u
.
cpanel
)
;
return
&
pdata
->
u
.
cpanel
;
return
NULL
;
}
...
...
@@ -436,14 +436,14 @@ static BOOL CreateCPanelEnumList(
if
(
!
(
wfd
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
))
{
strcpy
(
p
,
wfd
.
cFileName
);
SHELL_RegisterCPanelApp
(
(
IEnumIDList
*
)
iface
,
szPath
);
SHELL_RegisterCPanelApp
(
iface
,
szPath
);
}
}
while
(
FindNextFileA
(
hFile
,
&
wfd
));
FindClose
(
hFile
);
}
SHELL_RegisterRegistryCPanelApps
(
(
IEnumIDList
*
)
iface
,
HKEY_LOCAL_MACHINE
,
"SOFTWARE
\\
Microsoft
\\
Windows
\\
CurrentVersion
\\
Control Panel
\\
Cpls"
);
SHELL_RegisterRegistryCPanelApps
(
(
IEnumIDList
*
)
iface
,
HKEY_CURRENT_USER
,
"SOFTWARE
\\
Microsoft
\\
Windows
\\
CurrentVersion
\\
Control Panel
\\
Cpls"
);
SHELL_RegisterRegistryCPanelApps
(
iface
,
HKEY_LOCAL_MACHINE
,
"SOFTWARE
\\
Microsoft
\\
Windows
\\
CurrentVersion
\\
Control Panel
\\
Cpls"
);
SHELL_RegisterRegistryCPanelApps
(
iface
,
HKEY_CURRENT_USER
,
"SOFTWARE
\\
Microsoft
\\
Windows
\\
CurrentVersion
\\
Control Panel
\\
Cpls"
);
}
return
TRUE
;
}
...
...
dlls/shell32/dde.c
View file @
52db721a
...
...
@@ -111,7 +111,7 @@ static HDDEDATA CALLBACK DdeCallback(
case
XTYP_WILDCONNECT
:
return
(
HDDEDATA
)(
DWORD_PTR
)
Dde_OnWildConnect
(
hsz1
,
hsz2
);
case
XTYP_REQUEST
:
return
(
HDDEDATA
)
Dde_OnRequest
(
uFmt
,
hconv
,
hsz1
,
hsz2
);
return
Dde_OnRequest
(
uFmt
,
hconv
,
hsz1
,
hsz2
);
case
XTYP_EXECUTE
:
return
(
HDDEDATA
)(
DWORD_PTR
)
Dde_OnExecute
(
hconv
,
hsz1
,
hdata
);
case
XTYP_DISCONNECT
:
...
...
dlls/shell32/dialogs.c
View file @
52db721a
...
...
@@ -103,7 +103,7 @@ void WINAPI RunFileDlg(
MessageBoxA
(
hwndOwner
,
"Couldn't find dialog."
,
"Nix"
,
MB_OK
)
;
return
;
}
if
(
!
(
template
=
(
LPVOID
)
LoadResource
(
shell32_hInstance
,
hRes
)))
if
(
!
(
template
=
LoadResource
(
shell32_hInstance
,
hRes
)))
{
MessageBoxA
(
hwndOwner
,
"Couldn't load dialog."
,
"Nix"
,
MB_OK
)
;
return
;
...
...
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