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
991fd85d
Commit
991fd85d
authored
Nov 21, 2002
by
Johan Dahlin
Committed by
Alexandre Julliard
Nov 21, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make shell32 compile with -DSTRICT.
parent
d83d2d26
Show whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
150 additions
and
149 deletions
+150
-149
Makefile.in
dlls/shell32/Makefile.in
+1
-1
brsfolder.c
dlls/shell32/brsfolder.c
+5
-5
changenotify.c
dlls/shell32/changenotify.c
+3
-4
control.c
dlls/shell32/control.c
+3
-3
dialogs.c
dlls/shell32/dialogs.c
+4
-3
dragdrophelper.c
dlls/shell32/dragdrophelper.c
+1
-1
iconcache.c
dlls/shell32/iconcache.c
+3
-3
memorystream.c
dlls/shell32/memorystream.c
+2
-2
pidl.c
dlls/shell32/pidl.c
+3
-3
shell.c
dlls/shell32/shell.c
+8
-8
shell32_main.c
dlls/shell32/shell32_main.c
+7
-8
shell32_main.h
dlls/shell32/shell32_main.h
+2
-1
shelllink.c
dlls/shell32/shelllink.c
+6
-4
shellole.c
dlls/shell32/shellole.c
+2
-2
shellord.c
dlls/shell32/shellord.c
+15
-15
shellpath.c
dlls/shell32/shellpath.c
+2
-2
shellreg.c
dlls/shell32/shellreg.c
+8
-8
shfldr_desktop.c
dlls/shell32/shfldr_desktop.c
+5
-5
shfldr_fs.c
dlls/shell32/shfldr_fs.c
+5
-5
shfldr_mycomp.c
dlls/shell32/shfldr_mycomp.c
+5
-5
shlexec.c
dlls/shell32/shlexec.c
+19
-19
shlmenu.c
dlls/shell32/shlmenu.c
+23
-24
shlview.c
dlls/shell32/shlview.c
+5
-5
shv_bg_cmenu.c
dlls/shell32/shv_bg_cmenu.c
+2
-2
shv_item_cmenu.c
dlls/shell32/shv_item_cmenu.c
+4
-4
systray.c
dlls/shell32/systray.c
+7
-7
No files found.
dlls/shell32/Makefile.in
View file @
991fd85d
EXTRADEFS
=
-D_SHELL32_
-DWINE_NO_STRICT
EXTRADEFS
=
-D_SHELL32_
TOPSRCDIR
=
@top_srcdir@
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
SRCDIR
=
@srcdir@
...
...
dlls/shell32/brsfolder.c
View file @
991fd85d
...
@@ -49,7 +49,7 @@ static void InitializeTreeView(HWND hwndParent, LPCITEMIDLIST root)
...
@@ -49,7 +49,7 @@ static void InitializeTreeView(HWND hwndParent, LPCITEMIDLIST root)
hwndTreeView
=
GetDlgItem
(
hwndParent
,
IDD_TREEVIEW
);
hwndTreeView
=
GetDlgItem
(
hwndParent
,
IDD_TREEVIEW
);
Shell_GetImageList
(
NULL
,
&
hImageList
);
Shell_GetImageList
(
NULL
,
&
hImageList
);
TRACE
(
"dlg=%
x tree=%x
\n
"
,
hwndParent
,
hwndTreeView
);
TRACE
(
"dlg=%
p tree=%p
\n
"
,
hwndParent
,
hwndTreeView
);
if
(
hImageList
&&
hwndTreeView
)
if
(
hImageList
&&
hwndTreeView
)
{
TreeView_SetImageList
(
hwndTreeView
,
hImageList
,
0
);
{
TreeView_SetImageList
(
hwndTreeView
,
hImageList
,
0
);
...
@@ -203,7 +203,7 @@ static LRESULT MsgNotify(HWND hWnd, UINT CtlID, LPNMHDR lpnmh)
...
@@ -203,7 +203,7 @@ static LRESULT MsgNotify(HWND hWnd, UINT CtlID, LPNMHDR lpnmh)
IShellFolder
*
lpsf2
=
0
;
IShellFolder
*
lpsf2
=
0
;
TRACE
(
"%
x
%x %p msg=%x
\n
"
,
hWnd
,
CtlID
,
lpnmh
,
pnmtv
->
hdr
.
code
);
TRACE
(
"%
p
%x %p msg=%x
\n
"
,
hWnd
,
CtlID
,
lpnmh
,
pnmtv
->
hdr
.
code
);
switch
(
pnmtv
->
hdr
.
idFrom
)
switch
(
pnmtv
->
hdr
.
idFrom
)
{
case
IDD_TREEVIEW
:
{
case
IDD_TREEVIEW
:
...
@@ -257,7 +257,7 @@ static LRESULT MsgNotify(HWND hWnd, UINT CtlID, LPNMHDR lpnmh)
...
@@ -257,7 +257,7 @@ static LRESULT MsgNotify(HWND hWnd, UINT CtlID, LPNMHDR lpnmh)
static
INT_PTR
CALLBACK
BrsFolderDlgProc
(
HWND
hWnd
,
UINT
msg
,
WPARAM
wParam
,
static
INT_PTR
CALLBACK
BrsFolderDlgProc
(
HWND
hWnd
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
LPARAM
lParam
)
{
{
TRACE
(
"hwnd=%
08x
msg=%04x 0x%08x 0x%08lx
\n
"
,
hWnd
,
msg
,
wParam
,
lParam
);
TRACE
(
"hwnd=%
p
msg=%04x 0x%08x 0x%08lx
\n
"
,
hWnd
,
msg
,
wParam
,
lParam
);
switch
(
msg
)
switch
(
msg
)
{
case
WM_INITDIALOG
:
{
case
WM_INITDIALOG
:
...
@@ -337,7 +337,7 @@ static INT_PTR CALLBACK BrsFolderDlgProc( HWND hWnd, UINT msg, WPARAM wParam,
...
@@ -337,7 +337,7 @@ static INT_PTR CALLBACK BrsFolderDlgProc( HWND hWnd, UINT msg, WPARAM wParam,
*/
*/
LPITEMIDLIST
WINAPI
SHBrowseForFolderA
(
LPBROWSEINFOA
lpbi
)
LPITEMIDLIST
WINAPI
SHBrowseForFolderA
(
LPBROWSEINFOA
lpbi
)
{
{
TRACE
(
"(%p{lpszTitle=%s,owner=%
i
})
\n
"
,
TRACE
(
"(%p{lpszTitle=%s,owner=%
p
})
\n
"
,
lpbi
,
debugstr_a
(
lpbi
->
lpszTitle
),
lpbi
->
hwndOwner
);
lpbi
,
debugstr_a
(
lpbi
->
lpszTitle
),
lpbi
->
hwndOwner
);
return
(
LPITEMIDLIST
)
DialogBoxParamA
(
shell32_hInstance
,
return
(
LPITEMIDLIST
)
DialogBoxParamA
(
shell32_hInstance
,
...
@@ -354,7 +354,7 @@ LPITEMIDLIST WINAPI SHBrowseForFolderW (LPBROWSEINFOW lpbi)
...
@@ -354,7 +354,7 @@ LPITEMIDLIST WINAPI SHBrowseForFolderW (LPBROWSEINFOW lpbi)
char
szDisplayName
[
MAX_PATH
],
szTitle
[
MAX_PATH
];
char
szDisplayName
[
MAX_PATH
],
szTitle
[
MAX_PATH
];
BROWSEINFOA
bi
;
BROWSEINFOA
bi
;
TRACE
(
"((%p->{lpszTitle=%s,owner=%
i
})
\n
"
,
lpbi
,
TRACE
(
"((%p->{lpszTitle=%s,owner=%
p
})
\n
"
,
lpbi
,
lpbi
?
debugstr_w
(
lpbi
->
lpszTitle
)
:
NULL
,
lpbi
?
lpbi
->
hwndOwner
:
0
);
lpbi
?
debugstr_w
(
lpbi
->
lpszTitle
)
:
NULL
,
lpbi
?
lpbi
->
hwndOwner
:
0
);
if
(
!
lpbi
)
if
(
!
lpbi
)
...
...
dlls/shell32/changenotify.c
View file @
991fd85d
...
@@ -161,7 +161,7 @@ SHChangeNotifyRegister(
...
@@ -161,7 +161,7 @@ SHChangeNotifyRegister(
item
=
SHAlloc
(
sizeof
(
NOTIFICATIONLIST
));
item
=
SHAlloc
(
sizeof
(
NOTIFICATIONLIST
));
TRACE
(
"(
0x%04x
,0x%08lx,0x%08lx,0x%08lx,0x%08x,%p) item=%p
\n
"
,
TRACE
(
"(
%p
,0x%08lx,0x%08lx,0x%08lx,0x%08x,%p) item=%p
\n
"
,
hwnd
,
dwFlags
,
wEventMask
,
uMsg
,
cItems
,
lpItems
,
item
);
hwnd
,
dwFlags
,
wEventMask
,
uMsg
,
cItems
,
lpItems
,
item
);
item
->
next
=
NULL
;
item
->
next
=
NULL
;
...
@@ -188,7 +188,7 @@ BOOL WINAPI
...
@@ -188,7 +188,7 @@ BOOL WINAPI
SHChangeNotifyDeregister
(
SHChangeNotifyDeregister
(
HANDLE
hNotify
)
HANDLE
hNotify
)
{
{
TRACE
(
"(
0x%08x
)
\n
"
,
hNotify
);
TRACE
(
"(
%p
)
\n
"
,
hNotify
);
return
DeleteNode
((
LPNOTIFICATIONLIST
)
hNotify
);
return
DeleteNode
((
LPNOTIFICATIONLIST
)
hNotify
);
}
}
...
@@ -321,7 +321,7 @@ DWORD WINAPI NTSHChangeNotifyRegister(
...
@@ -321,7 +321,7 @@ DWORD WINAPI NTSHChangeNotifyRegister(
int
count
,
int
count
,
LPNOTIFYREGISTER
idlist
)
LPNOTIFYREGISTER
idlist
)
{
{
FIXME
(
"(
0x%04x
,0x%08lx,0x%08lx,0x%08lx,0x%08x,%p):stub.
\n
"
,
FIXME
(
"(
%p
,0x%08lx,0x%08lx,0x%08lx,0x%08x,%p):stub.
\n
"
,
hwnd
,
events1
,
events2
,
msg
,
count
,
idlist
);
hwnd
,
events1
,
events2
,
msg
,
count
,
idlist
);
return
0
;
return
0
;
}
}
...
@@ -357,4 +357,3 @@ DWORD WINAPI NTSHChangeNotifyDeregister(LONG x1)
...
@@ -357,4 +357,3 @@ DWORD WINAPI NTSHChangeNotifyDeregister(LONG x1)
FIXME
(
"(0x%08lx):stub.
\n
"
,
x1
);
FIXME
(
"(0x%08lx):stub.
\n
"
,
x1
);
return
0
;
return
0
;
}
}
dlls/shell32/control.c
View file @
991fd85d
...
@@ -378,7 +378,7 @@ void WINAPI Control_RunDLL(HWND hWnd, HINSTANCE hInst, LPCSTR cmd, DWORD nCmdSho
...
@@ -378,7 +378,7 @@ void WINAPI Control_RunDLL(HWND hWnd, HINSTANCE hInst, LPCSTR cmd, DWORD nCmdSho
{
{
CPanel
panel
;
CPanel
panel
;
TRACE
(
"(
0x%08x
, 0x%08lx, %s, 0x%08lx)
\n
"
,
TRACE
(
"(
%p
, 0x%08lx, %s, 0x%08lx)
\n
"
,
hWnd
,
(
DWORD
)
hInst
,
debugstr_a
(
cmd
),
nCmdShow
);
hWnd
,
(
DWORD
)
hInst
,
debugstr_a
(
cmd
),
nCmdShow
);
memset
(
&
panel
,
0
,
sizeof
(
panel
));
memset
(
&
panel
,
0
,
sizeof
(
panel
));
...
@@ -396,7 +396,7 @@ void WINAPI Control_RunDLL(HWND hWnd, HINSTANCE hInst, LPCSTR cmd, DWORD nCmdSho
...
@@ -396,7 +396,7 @@ void WINAPI Control_RunDLL(HWND hWnd, HINSTANCE hInst, LPCSTR cmd, DWORD nCmdSho
*/
*/
HRESULT
WINAPI
Control_FillCache_RunDLL
(
HWND
hWnd
,
HANDLE
hModule
,
DWORD
w
,
DWORD
x
)
HRESULT
WINAPI
Control_FillCache_RunDLL
(
HWND
hWnd
,
HANDLE
hModule
,
DWORD
w
,
DWORD
x
)
{
{
FIXME
(
"
0x%04x 0x%04x 0x%04lx 0x%04lx stub
\n
"
,
hWnd
,
hModule
,
w
,
x
);
FIXME
(
"
%p %p 0x%04lx 0x%04lx stub
\n
"
,
hWnd
,
hModule
,
w
,
x
);
return
0
;
return
0
;
}
}
...
@@ -419,6 +419,6 @@ HRESULT WINAPI RunDLL_CallEntry16(DWORD v, DWORD w, DWORD x, DWORD y, DWORD z)
...
@@ -419,6 +419,6 @@ HRESULT WINAPI RunDLL_CallEntry16(DWORD v, DWORD w, DWORD x, DWORD y, DWORD z)
*/
*/
DWORD
WINAPI
CallCPLEntry16
(
HMODULE
hMod
,
FARPROC
pFunc
,
DWORD
dw3
,
DWORD
dw4
,
DWORD
dw5
,
DWORD
dw6
)
DWORD
WINAPI
CallCPLEntry16
(
HMODULE
hMod
,
FARPROC
pFunc
,
DWORD
dw3
,
DWORD
dw4
,
DWORD
dw5
,
DWORD
dw6
)
{
{
FIXME
(
"(%
04x
, %p, %08lx, %08lx, %08lx, %08lx): stub.
\n
"
,
hMod
,
pFunc
,
dw3
,
dw4
,
dw5
,
dw6
);
FIXME
(
"(%
p
, %p, %08lx, %08lx, %08lx, %08lx): stub.
\n
"
,
hMod
,
pFunc
,
dw3
,
dw4
,
dw5
,
dw6
);
return
0x0deadbee
;
return
0x0deadbee
;
}
}
dlls/shell32/dialogs.c
View file @
991fd85d
...
@@ -60,7 +60,7 @@ BOOL WINAPI PickIconDlg(
...
@@ -60,7 +60,7 @@ BOOL WINAPI PickIconDlg(
DWORD
nMaxFile
,
DWORD
nMaxFile
,
LPDWORD
lpdwIconIndex
)
LPDWORD
lpdwIconIndex
)
{
{
FIXME
(
"(%
08x
,%s,%08lx,%p):stub.
\n
"
,
FIXME
(
"(%
p
,%s,%08lx,%p):stub.
\n
"
,
hwndOwner
,
lpstrFile
,
nMaxFile
,
lpdwIconIndex
);
hwndOwner
,
lpstrFile
,
nMaxFile
,
lpdwIconIndex
);
return
0xffffffff
;
return
0xffffffff
;
}
}
...
@@ -103,7 +103,8 @@ void WINAPI RunFileDlg(
...
@@ -103,7 +103,8 @@ void WINAPI RunFileDlg(
return
;
return
;
}
}
DialogBoxIndirectParamA
(
GetWindowLongA
(
hwndOwner
,
GWL_HINSTANCE
),
DialogBoxIndirectParamA
((
HINSTANCE
)
GetWindowLongA
(
hwndOwner
,
GWL_HINSTANCE
),
template
,
hwndOwner
,
RunDlgProc
,
(
LPARAM
)
&
rfdp
);
template
,
hwndOwner
,
RunDlgProc
,
(
LPARAM
)
&
rfdp
);
}
}
...
@@ -373,7 +374,7 @@ void FillList (HWND hCb, char *pszLatest)
...
@@ -373,7 +374,7 @@ void FillList (HWND hCb, char *pszLatest)
*/
*/
void
WINAPI
ExitWindowsDialog
(
HWND
hWndOwner
)
void
WINAPI
ExitWindowsDialog
(
HWND
hWndOwner
)
{
{
TRACE
(
"(
0x%08x
)
\n
"
,
hWndOwner
);
TRACE
(
"(
%p
)
\n
"
,
hWndOwner
);
if
(
MessageBoxA
(
hWndOwner
,
"Do you want to exit WINE?"
,
"Shutdown"
,
MB_YESNO
|
MB_ICONQUESTION
)
==
IDYES
)
if
(
MessageBoxA
(
hWndOwner
,
"Do you want to exit WINE?"
,
"Shutdown"
,
MB_YESNO
|
MB_ICONQUESTION
)
==
IDYES
)
{
{
SendMessageA
(
hWndOwner
,
WM_QUIT
,
0
,
0
);
SendMessageA
(
hWndOwner
,
WM_QUIT
,
0
,
0
);
...
...
dlls/shell32/dragdrophelper.c
View file @
991fd85d
...
@@ -137,7 +137,7 @@ static HRESULT WINAPI IDropTargetHelper_fnDragEnter (
...
@@ -137,7 +137,7 @@ static HRESULT WINAPI IDropTargetHelper_fnDragEnter (
DWORD
dwEffect
)
DWORD
dwEffect
)
{
{
ICOM_THIS
(
IDropTargetHelperImpl
,
iface
);
ICOM_THIS
(
IDropTargetHelperImpl
,
iface
);
FIXME
(
"(%p)->(
0x%x
%p %p 0x%08lx)
\n
"
,
This
,
hwndTarget
,
pDataObject
,
ppt
,
dwEffect
);
FIXME
(
"(%p)->(
%p
%p %p 0x%08lx)
\n
"
,
This
,
hwndTarget
,
pDataObject
,
ppt
,
dwEffect
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
...
dlls/shell32/iconcache.c
View file @
991fd85d
...
@@ -87,7 +87,7 @@ static INT SIC_IconAppend (LPCSTR sSourceFile, INT dwSourceIndex, HICON hSmallIc
...
@@ -87,7 +87,7 @@ static INT SIC_IconAppend (LPCSTR sSourceFile, INT dwSourceIndex, HICON hSmallIc
{
LPSIC_ENTRY
lpsice
;
{
LPSIC_ENTRY
lpsice
;
INT
ret
,
index
,
index1
;
INT
ret
,
index
,
index1
;
char
*
path
;
char
*
path
;
TRACE
(
"%s %i %
x %x
\n
"
,
sSourceFile
,
dwSourceIndex
,
hSmallIcon
,
hBigIcon
);
TRACE
(
"%s %i %
p %p
\n
"
,
sSourceFile
,
dwSourceIndex
,
hSmallIcon
,
hBigIcon
);
lpsice
=
(
LPSIC_ENTRY
)
SHAlloc
(
sizeof
(
SIC_ENTRY
));
lpsice
=
(
LPSIC_ENTRY
)
SHAlloc
(
sizeof
(
SIC_ENTRY
));
...
@@ -136,7 +136,7 @@ static INT SIC_LoadIcon (LPCSTR sSourceFile, INT dwSourceIndex)
...
@@ -136,7 +136,7 @@ static INT SIC_LoadIcon (LPCSTR sSourceFile, INT dwSourceIndex)
if
(
!
hiconLarge
||
!
hiconSmall
)
if
(
!
hiconLarge
||
!
hiconSmall
)
{
{
WARN
(
"failure loading icon %i from %s (%
x %x
)
\n
"
,
dwSourceIndex
,
sSourceFile
,
hiconLarge
,
hiconSmall
);
WARN
(
"failure loading icon %i from %s (%
p %p
)
\n
"
,
dwSourceIndex
,
sSourceFile
,
hiconLarge
,
hiconSmall
);
return
-
1
;
return
-
1
;
}
}
return
SIC_IconAppend
(
sSourceFile
,
dwSourceIndex
,
hiconSmall
,
hiconLarge
);
return
SIC_IconAppend
(
sSourceFile
,
dwSourceIndex
,
hiconSmall
,
hiconLarge
);
...
@@ -491,7 +491,7 @@ HICON WINAPI ExtractAssociatedIconA(HINSTANCE hInst, LPSTR lpIconPath, LPWORD lp
...
@@ -491,7 +491,7 @@ HICON WINAPI ExtractAssociatedIconA(HINSTANCE hInst, LPSTR lpIconPath, LPWORD lp
else
else
*
lpiIcon
=
6
;
/* generic icon - found nothing */
*
lpiIcon
=
6
;
/* generic icon - found nothing */
GetModuleFileName
16
(
hInst
,
lpIconPath
,
0x80
);
GetModuleFileName
A
(
hInst
,
lpIconPath
,
0x80
);
hIcon
=
LoadIconA
(
hInst
,
MAKEINTRESOURCEA
(
*
lpiIcon
));
hIcon
=
LoadIconA
(
hInst
,
MAKEINTRESOURCEA
(
*
lpiIcon
));
}
}
return
hIcon
;
return
hIcon
;
...
...
dlls/shell32/memorystream.c
View file @
991fd85d
...
@@ -94,9 +94,9 @@ HRESULT CreateStreamOnFile (LPCSTR pszFilename, IStream ** ppstm)
...
@@ -94,9 +94,9 @@ HRESULT CreateStreamOnFile (LPCSTR pszFilename, IStream ** ppstm)
fstr
=
(
ISHFileStream
*
)
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
ISHFileStream
));
fstr
=
(
ISHFileStream
*
)
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
ISHFileStream
));
fstr
->
lpvtst
=&
stvt
;
fstr
->
lpvtst
=&
stvt
;
fstr
->
ref
=
1
;
fstr
->
ref
=
1
;
fstr
->
dwLength
=
GetFileSize
(
hFile
,
NULL
);
fstr
->
dwLength
=
GetFileSize
(
(
HANDLE
)
hFile
,
NULL
);
if
(
!
(
fstr
->
hMapping
=
CreateFileMappingA
(
hFile
,
NULL
,
PAGE_READONLY
|
SEC_COMMIT
,
0
,
0
,
NULL
)))
if
(
!
(
fstr
->
hMapping
=
CreateFileMappingA
(
(
HANDLE
)
hFile
,
NULL
,
PAGE_READONLY
|
SEC_COMMIT
,
0
,
0
,
NULL
)))
{
{
WARN
(
"failed to create filemap.
\n
"
);
WARN
(
"failed to create filemap.
\n
"
);
goto
end_2
;
goto
end_2
;
...
...
dlls/shell32/pidl.c
View file @
991fd85d
...
@@ -283,7 +283,7 @@ HRESULT WINAPI SHILCreateFromPathAW (LPCVOID path, LPITEMIDLIST * ppidl, DWORD *
...
@@ -283,7 +283,7 @@ HRESULT WINAPI SHILCreateFromPathAW (LPCVOID path, LPITEMIDLIST * ppidl, DWORD *
*/
*/
LPITEMIDLIST
WINAPI
SHCloneSpecialIDList
(
HWND
hwndOwner
,
DWORD
nFolder
,
DWORD
x3
)
LPITEMIDLIST
WINAPI
SHCloneSpecialIDList
(
HWND
hwndOwner
,
DWORD
nFolder
,
DWORD
x3
)
{
LPITEMIDLIST
ppidl
;
{
LPITEMIDLIST
ppidl
;
WARN_
(
shell
)(
"(hwnd=
0x%x
,csidl=0x%lx,0x%lx):semi-stub.
\n
"
,
WARN_
(
shell
)(
"(hwnd=
%p
,csidl=0x%lx,0x%lx):semi-stub.
\n
"
,
hwndOwner
,
nFolder
,
x3
);
hwndOwner
,
nFolder
,
x3
);
SHGetSpecialFolderLocation
(
hwndOwner
,
nFolder
,
&
ppidl
);
SHGetSpecialFolderLocation
(
hwndOwner
,
nFolder
,
&
ppidl
);
...
@@ -747,7 +747,7 @@ HRESULT WINAPI SHGetSpecialFolderLocation(
...
@@ -747,7 +747,7 @@ HRESULT WINAPI SHGetSpecialFolderLocation(
CHAR
szPath
[
MAX_PATH
];
CHAR
szPath
[
MAX_PATH
];
HRESULT
hr
=
E_INVALIDARG
;
HRESULT
hr
=
E_INVALIDARG
;
TRACE_
(
shell
)(
"(%
04x
,0x%x,%p)
\n
"
,
hwndOwner
,
nFolder
,
ppidl
);
TRACE_
(
shell
)(
"(%
p
,0x%x,%p)
\n
"
,
hwndOwner
,
nFolder
,
ppidl
);
if
(
ppidl
)
if
(
ppidl
)
{
{
...
@@ -807,7 +807,7 @@ HRESULT WINAPI SHGetFolderLocation(
...
@@ -807,7 +807,7 @@ HRESULT WINAPI SHGetFolderLocation(
DWORD
dwFlags
,
DWORD
dwFlags
,
LPITEMIDLIST
*
ppidl
)
LPITEMIDLIST
*
ppidl
)
{
{
FIXME
(
"
0x%04x 0x%08x 0x%08x
0x%08lx %p
\n
"
,
FIXME
(
"
%p 0x%08x %p
0x%08lx %p
\n
"
,
hwnd
,
csidl
,
hToken
,
dwFlags
,
ppidl
);
hwnd
,
csidl
,
hToken
,
dwFlags
,
ppidl
);
return
SHGetSpecialFolderLocation
(
hwnd
,
csidl
,
ppidl
);
return
SHGetSpecialFolderLocation
(
hwnd
,
csidl
,
ppidl
);
}
}
...
...
dlls/shell32/shell.c
View file @
991fd85d
...
@@ -191,10 +191,9 @@ BOOL16 WINAPI DragQueryPoint16(HDROP16 hDrop, POINT16 *p)
...
@@ -191,10 +191,9 @@ BOOL16 WINAPI DragQueryPoint16(HDROP16 hDrop, POINT16 *p)
*/
*/
HINSTANCE16
WINAPI
FindExecutable16
(
LPCSTR
lpFile
,
LPCSTR
lpDirectory
,
HINSTANCE16
WINAPI
FindExecutable16
(
LPCSTR
lpFile
,
LPCSTR
lpDirectory
,
LPSTR
lpResult
)
LPSTR
lpResult
)
{
return
(
HINSTANCE16
)
FindExecutableA
(
lpFile
,
lpDirectory
,
lpResult
);
{
return
HINSTANCE_16
(
FindExecutableA
(
lpFile
,
lpDirectory
,
lpResult
)
);
}
}
/*************************************************************************
/*************************************************************************
* AboutDlgProc (SHELL.33)
* AboutDlgProc (SHELL.33)
*/
*/
...
@@ -238,9 +237,9 @@ HGLOBAL16 WINAPI InternalExtractIcon16(HINSTANCE16 hInstance,
...
@@ -238,9 +237,9 @@ HGLOBAL16 WINAPI InternalExtractIcon16(HINSTANCE16 hInstance,
if
(
hFile
==
HFILE_ERROR
)
if
(
hFile
==
HFILE_ERROR
)
{
/* not found - load from builtin module if available */
{
/* not found - load from builtin module if available */
HINSTANCE
hInst
=
(
HINSTANCE
)
LoadLibrary16
(
lpszExeFileName
);
HINSTANCE
hInst
=
HINSTANCE_32
(
LoadLibrary16
(
lpszExeFileName
)
);
if
(
hInst
<
32
)
/* hmm, no Win16 module - try Win32 :-) */
if
(
(
int
)
hInst
<
32
)
/* hmm, no Win16 module - try Win32 :-) */
hInst
=
LoadLibraryA
(
lpszExeFileName
);
hInst
=
LoadLibraryA
(
lpszExeFileName
);
if
(
hInst
)
if
(
hInst
)
{
{
...
@@ -628,10 +627,11 @@ DWORD WINAPI RegEnumKey16( HKEY hkey, DWORD index, LPSTR name, DWORD name_len )
...
@@ -628,10 +627,11 @@ DWORD WINAPI RegEnumKey16( HKEY hkey, DWORD index, LPSTR name, DWORD name_len )
/*************************************************************************
/*************************************************************************
* SHELL_Execute16 [Internal]
* SHELL_Execute16 [Internal]
*/
*/
static
HINSTANCE
SHELL_Execute16
(
char
*
lpCmd
,
LPSHELLEXECUTEINFOA
sei
,
BOOL
shWait
)
static
UINT
SHELL_Execute16
(
char
*
lpCmd
,
LPSHELLEXECUTEINFOA
sei
,
BOOL
shWait
)
{
{
sei
->
hInstApp
=
WinExec16
(
lpCmd
,
sei
->
nShow
);
UINT
ret
=
WinExec16
(
lpCmd
,
sei
->
nShow
);
return
sei
->
hInstApp
;
sei
->
hInstApp
=
HINSTANCE_32
(
ret
);
return
ret
;
}
}
/*************************************************************************
/*************************************************************************
...
@@ -659,5 +659,5 @@ HINSTANCE16 WINAPI ShellExecute16( HWND16 hWnd, LPCSTR lpOperation,
...
@@ -659,5 +659,5 @@ HINSTANCE16 WINAPI ShellExecute16( HWND16 hWnd, LPCSTR lpOperation,
sei
.
hProcess
=
hProcess
;
sei
.
hProcess
=
hProcess
;
ShellExecuteExA32
(
&
sei
,
SHELL_Execute16
);
ShellExecuteExA32
(
&
sei
,
SHELL_Execute16
);
return
(
HINSTANCE16
)
sei
.
hInstApp
;
return
HINSTANCE_16
(
sei
.
hInstApp
)
;
}
}
dlls/shell32/shell32_main.c
View file @
991fd85d
...
@@ -457,7 +457,7 @@ DWORD WINAPI SHGetFileInfoA(LPCSTR path,DWORD dwFileAttributes,
...
@@ -457,7 +457,7 @@ DWORD WINAPI SHGetFileInfoA(LPCSTR path,DWORD dwFileAttributes,
if
(
pidlLast
)
SHFree
(
pidlLast
);
if
(
pidlLast
)
SHFree
(
pidlLast
);
#ifdef MORE_DEBUG
#ifdef MORE_DEBUG
TRACE
(
"icon=
0x%08x
index=0x%08x attr=0x%08lx name=%s type=%s ret=0x%08lx
\n
"
,
TRACE
(
"icon=
%p
index=0x%08x attr=0x%08lx name=%s type=%s ret=0x%08lx
\n
"
,
psfi
->
hIcon
,
psfi
->
iIcon
,
psfi
->
dwAttributes
,
psfi
->
szDisplayName
,
psfi
->
szTypeName
,
ret
);
psfi
->
hIcon
,
psfi
->
iIcon
,
psfi
->
dwAttributes
,
psfi
->
szDisplayName
,
psfi
->
szTypeName
,
ret
);
#endif
#endif
return
ret
;
return
ret
;
...
@@ -524,7 +524,7 @@ HICON WINAPI DuplicateIcon( HINSTANCE hInstance, HICON hIcon)
...
@@ -524,7 +524,7 @@ HICON WINAPI DuplicateIcon( HINSTANCE hInstance, HICON hIcon)
ICONINFO
IconInfo
;
ICONINFO
IconInfo
;
HICON
hDupIcon
=
0
;
HICON
hDupIcon
=
0
;
TRACE
(
"(%
04x, %04x
)
\n
"
,
hInstance
,
hIcon
);
TRACE
(
"(%
p, %p
)
\n
"
,
hInstance
,
hIcon
);
if
(
GetIconInfo
(
hIcon
,
&
IconInfo
))
if
(
GetIconInfo
(
hIcon
,
&
IconInfo
))
{
{
...
@@ -538,7 +538,6 @@ HICON WINAPI DuplicateIcon( HINSTANCE hInstance, HICON hIcon)
...
@@ -538,7 +538,6 @@ HICON WINAPI DuplicateIcon( HINSTANCE hInstance, HICON hIcon)
return
hDupIcon
;
return
hDupIcon
;
}
}
/*************************************************************************
/*************************************************************************
* ExtractIconA [SHELL32.@]
* ExtractIconA [SHELL32.@]
*
*
...
@@ -547,7 +546,7 @@ HICON WINAPI DuplicateIcon( HINSTANCE hInstance, HICON hIcon)
...
@@ -547,7 +546,7 @@ HICON WINAPI DuplicateIcon( HINSTANCE hInstance, HICON hIcon)
*/
*/
HICON
WINAPI
ExtractIconA
(
HINSTANCE
hInstance
,
LPCSTR
lpszExeFileName
,
HICON
WINAPI
ExtractIconA
(
HINSTANCE
hInstance
,
LPCSTR
lpszExeFileName
,
UINT
nIconIndex
)
UINT
nIconIndex
)
{
HGLOBAL16
handle
=
InternalExtractIcon16
(
hInstance
,
lpszExeFileName
,
nIconIndex
,
1
);
{
HGLOBAL16
handle
=
InternalExtractIcon16
(
HINSTANCE_16
(
hInstance
)
,
lpszExeFileName
,
nIconIndex
,
1
);
TRACE
(
"
\n
"
);
TRACE
(
"
\n
"
);
if
(
handle
)
if
(
handle
)
{
{
...
@@ -712,7 +711,7 @@ INT_PTR CALLBACK AboutDlgProc( HWND hWnd, UINT msg, WPARAM wParam,
...
@@ -712,7 +711,7 @@ INT_PTR CALLBACK AboutDlgProc( HWND hWnd, UINT msg, WPARAM wParam,
SystemParametersInfoA
(
SPI_GETICONTITLELOGFONT
,
0
,
&
logFont
,
0
);
SystemParametersInfoA
(
SPI_GETICONTITLELOGFONT
,
0
,
&
logFont
,
0
);
hIconTitleFont
=
CreateFontIndirectA
(
&
logFont
);
hIconTitleFont
=
CreateFontIndirectA
(
&
logFont
);
}
}
SendMessageA
(
hWndCtl
,
WM_SETFONT
,
hIconTitleFont
,
0
);
SendMessageA
(
hWndCtl
,
WM_SETFONT
,
HICON_16
(
hIconTitleFont
)
,
0
);
while
(
*
pstr
)
while
(
*
pstr
)
{
SendMessageA
(
hWndCtl
,
LB_ADDSTRING
,
(
WPARAM
)
-
1
,
(
LPARAM
)
*
pstr
);
{
SendMessageA
(
hWndCtl
,
LB_ADDSTRING
,
(
WPARAM
)
-
1
,
(
LPARAM
)
*
pstr
);
pstr
++
;
pstr
++
;
...
@@ -845,7 +844,7 @@ BOOL WINAPI ShellAboutA( HWND hWnd, LPCSTR szApp, LPCSTR szOtherStuff,
...
@@ -845,7 +844,7 @@ BOOL WINAPI ShellAboutA( HWND hWnd, LPCSTR szApp, LPCSTR szOtherStuff,
info
.
szOtherStuff
=
szOtherStuff
;
info
.
szOtherStuff
=
szOtherStuff
;
info
.
hIcon
=
hIcon
;
info
.
hIcon
=
hIcon
;
if
(
!
hIcon
)
info
.
hIcon
=
LoadIconA
(
0
,
IDI_WINLOGOA
);
if
(
!
hIcon
)
info
.
hIcon
=
LoadIconA
(
0
,
IDI_WINLOGOA
);
return
DialogBoxIndirectParamA
(
GetWindowLongA
(
hWnd
,
GWL_HINSTANCE
),
return
DialogBoxIndirectParamA
(
(
HINSTANCE
)
GetWindowLongA
(
hWnd
,
GWL_HINSTANCE
),
template
,
hWnd
,
AboutDlgProc
,
(
LPARAM
)
&
info
);
template
,
hWnd
,
AboutDlgProc
,
(
LPARAM
)
&
info
);
}
}
...
@@ -871,7 +870,7 @@ BOOL WINAPI ShellAboutW( HWND hWnd, LPCWSTR szApp, LPCWSTR szOtherStuff,
...
@@ -871,7 +870,7 @@ BOOL WINAPI ShellAboutW( HWND hWnd, LPCWSTR szApp, LPCWSTR szOtherStuff,
info
.
szOtherStuff
=
HEAP_strdupWtoA
(
GetProcessHeap
(),
0
,
szOtherStuff
);
info
.
szOtherStuff
=
HEAP_strdupWtoA
(
GetProcessHeap
(),
0
,
szOtherStuff
);
info
.
hIcon
=
hIcon
;
info
.
hIcon
=
hIcon
;
if
(
!
hIcon
)
info
.
hIcon
=
LoadIconA
(
0
,
IDI_WINLOGOA
);
if
(
!
hIcon
)
info
.
hIcon
=
LoadIconA
(
0
,
IDI_WINLOGOA
);
ret
=
DialogBoxIndirectParamA
(
GetWindowLongA
(
hWnd
,
GWL_HINSTANCE
),
ret
=
DialogBoxIndirectParamA
(
(
HINSTANCE
)
GetWindowLongA
(
hWnd
,
GWL_HINSTANCE
),
template
,
hWnd
,
AboutDlgProc
,
(
LPARAM
)
&
info
);
template
,
hWnd
,
AboutDlgProc
,
(
LPARAM
)
&
info
);
HeapFree
(
GetProcessHeap
(),
0
,
(
LPSTR
)
info
.
szApp
);
HeapFree
(
GetProcessHeap
(),
0
,
(
LPSTR
)
info
.
szApp
);
HeapFree
(
GetProcessHeap
(),
0
,
(
LPSTR
)
info
.
szOtherStuff
);
HeapFree
(
GetProcessHeap
(),
0
,
(
LPSTR
)
info
.
szOtherStuff
);
...
@@ -952,7 +951,7 @@ HIMAGELIST ShellBigIconList = 0;
...
@@ -952,7 +951,7 @@ HIMAGELIST ShellBigIconList = 0;
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
fImpLoad
)
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
fImpLoad
)
{
{
TRACE
(
"
0x%x
0x%lx %p
\n
"
,
hinstDLL
,
fdwReason
,
fImpLoad
);
TRACE
(
"
%p
0x%lx %p
\n
"
,
hinstDLL
,
fdwReason
,
fImpLoad
);
switch
(
fdwReason
)
switch
(
fdwReason
)
{
{
...
...
dlls/shell32/shell32_main.h
View file @
991fd85d
...
@@ -201,8 +201,9 @@ inline static void __SHCloneStrWtoA(char ** target, const WCHAR * source)
...
@@ -201,8 +201,9 @@ inline static void __SHCloneStrWtoA(char ** target, const WCHAR * source)
#define HICON_16(h32) (LOWORD(h32))
#define HICON_16(h32) (LOWORD(h32))
#define HICON_32(h16) ((HICON)(ULONG_PTR)(h16))
#define HICON_32(h16) ((HICON)(ULONG_PTR)(h16))
#define HINSTANCE_32(h16) ((HINSTANCE)(ULONG_PTR)(h16))
#define HINSTANCE_32(h16) ((HINSTANCE)(ULONG_PTR)(h16))
#define HINSTANCE_16(h32) (LOWORD(h32))
typedef
HINSTANCE
(
*
SHELL_ExecuteA1632
)(
char
*
lpCmd
,
LPSHELLEXECUTEINFOA
sei
,
BOOL
shWait
);
typedef
UINT
(
*
SHELL_ExecuteA1632
)(
char
*
lpCmd
,
LPSHELLEXECUTEINFOA
sei
,
BOOL
shWait
);
BOOL
WINAPI
ShellExecuteExA32
(
LPSHELLEXECUTEINFOA
sei
,
SHELL_ExecuteA1632
execfunc
);
BOOL
WINAPI
ShellExecuteExA32
(
LPSHELLEXECUTEINFOA
sei
,
SHELL_ExecuteA1632
execfunc
);
#endif
#endif
dlls/shell32/shelllink.c
View file @
991fd85d
...
@@ -391,13 +391,15 @@ static int ExtractFromEXEDLL(const char *szFileName, int nIndex, const char *szX
...
@@ -391,13 +391,15 @@ static int ExtractFromEXEDLL(const char *szFileName, int nIndex, const char *szX
if
(
nIndex
<
0
)
if
(
nIndex
<
0
)
{
{
hResInfo
=
FindResourceA
(
hModule
,
MAKEINTRESOURCEA
(
-
nIndex
),
RT_GROUP_ICONA
);
hResInfo
=
FindResourceA
(
hModule
,
MAKEINTRESOURCEA
(
-
nIndex
),
RT_GROUP_ICONA
);
TRACE
(
"FindResourceA (%s) called, return
0x%x
, error %ld
\n
"
,
szFileName
,
hResInfo
,
GetLastError
());
TRACE
(
"FindResourceA (%s) called, return
%p
, error %ld
\n
"
,
szFileName
,
hResInfo
,
GetLastError
());
}
}
else
else
{
{
sEnumRes
.
pResInfo
=
&
hResInfo
;
sEnumRes
.
pResInfo
=
&
hResInfo
;
sEnumRes
.
nIndex
=
nIndex
;
sEnumRes
.
nIndex
=
nIndex
;
if
(
EnumResourceNamesA
(
hModule
,
RT_GROUP_ICONA
,
&
EnumResNameProc
,
(
LONG
)
&
sEnumRes
))
if
(
EnumResourceNamesA
(
hModule
,
RT_GROUP_ICONA
,
(
ENUMRESNAMEPROCA
)
&
EnumResNameProc
,
(
LONG
)
&
sEnumRes
))
{
{
TRACE
(
"EnumResourceNamesA failed, error %ld
\n
"
,
GetLastError
());
TRACE
(
"EnumResourceNamesA failed, error %ld
\n
"
,
GetLastError
());
goto
error2
;
goto
error2
;
...
@@ -1305,7 +1307,7 @@ static HRESULT WINAPI IShellLinkA_fnResolve(IShellLinkA * iface, HWND hwnd, DWOR
...
@@ -1305,7 +1307,7 @@ static HRESULT WINAPI IShellLinkA_fnResolve(IShellLinkA * iface, HWND hwnd, DWOR
{
{
ICOM_THIS
(
IShellLinkImpl
,
iface
);
ICOM_THIS
(
IShellLinkImpl
,
iface
);
FIXME
(
"(%p)->(hwnd=%
x
flags=%lx)
\n
"
,
This
,
hwnd
,
fFlags
);
FIXME
(
"(%p)->(hwnd=%
p
flags=%lx)
\n
"
,
This
,
hwnd
,
fFlags
);
return
NOERROR
;
return
NOERROR
;
}
}
static
HRESULT
WINAPI
IShellLinkA_fnSetPath
(
IShellLinkA
*
iface
,
LPCSTR
pszFile
)
static
HRESULT
WINAPI
IShellLinkA_fnSetPath
(
IShellLinkA
*
iface
,
LPCSTR
pszFile
)
...
@@ -1565,7 +1567,7 @@ static HRESULT WINAPI IShellLinkW_fnResolve(IShellLinkW * iface, HWND hwnd, DWOR
...
@@ -1565,7 +1567,7 @@ static HRESULT WINAPI IShellLinkW_fnResolve(IShellLinkW * iface, HWND hwnd, DWOR
{
{
_ICOM_THIS_From_IShellLinkW
(
IShellLinkImpl
,
iface
);
_ICOM_THIS_From_IShellLinkW
(
IShellLinkImpl
,
iface
);
FIXME
(
"(%p)->(hwnd=%
x
flags=%lx)
\n
"
,
This
,
hwnd
,
fFlags
);
FIXME
(
"(%p)->(hwnd=%
p
flags=%lx)
\n
"
,
This
,
hwnd
,
fFlags
);
return
NOERROR
;
return
NOERROR
;
}
}
...
...
dlls/shell32/shellole.c
View file @
991fd85d
...
@@ -709,7 +709,7 @@ UINT WINAPI DragQueryFileA(
...
@@ -709,7 +709,7 @@ UINT WINAPI DragQueryFileA(
UINT
i
=
0
;
UINT
i
=
0
;
DROPFILES
*
lpDropFileStruct
=
(
DROPFILES
*
)
GlobalLock
(
hDrop
);
DROPFILES
*
lpDropFileStruct
=
(
DROPFILES
*
)
GlobalLock
(
hDrop
);
TRACE
(
"(%
08x
, %x, %p, %u)
\n
"
,
hDrop
,
lFile
,
lpszFile
,
lLength
);
TRACE
(
"(%
p
, %x, %p, %u)
\n
"
,
hDrop
,
lFile
,
lpszFile
,
lLength
);
if
(
!
lpDropFileStruct
)
goto
end
;
if
(
!
lpDropFileStruct
)
goto
end
;
...
@@ -766,7 +766,7 @@ UINT WINAPI DragQueryFileW(
...
@@ -766,7 +766,7 @@ UINT WINAPI DragQueryFileW(
UINT
i
=
0
;
UINT
i
=
0
;
DROPFILES
*
lpDropFileStruct
=
(
DROPFILES
*
)
GlobalLock
(
hDrop
);
DROPFILES
*
lpDropFileStruct
=
(
DROPFILES
*
)
GlobalLock
(
hDrop
);
TRACE
(
"(%
08x
, %x, %p, %u)
\n
"
,
hDrop
,
lFile
,
lpszwFile
,
lLength
);
TRACE
(
"(%
p
, %x, %p, %u)
\n
"
,
hDrop
,
lFile
,
lpszwFile
,
lLength
);
if
(
!
lpDropFileStruct
)
goto
end
;
if
(
!
lpDropFileStruct
)
goto
end
;
...
...
dlls/shell32/shellord.c
View file @
991fd85d
...
@@ -141,7 +141,7 @@ BOOL WINAPI GetFileNameFromBrowse(
...
@@ -141,7 +141,7 @@ BOOL WINAPI GetFileNameFromBrowse(
OPENFILENAMEA
ofn
;
OPENFILENAMEA
ofn
;
BOOL
ret
;
BOOL
ret
;
TRACE
(
"%
04x
, %s, %ld, %s, %s, %s, %s)
\n
"
,
TRACE
(
"%
p
, %s, %ld, %s, %s, %s, %s)
\n
"
,
hwndOwner
,
lpstrFile
,
nMaxFile
,
lpstrInitialDir
,
lpstrDefExt
,
hwndOwner
,
lpstrFile
,
nMaxFile
,
lpstrInitialDir
,
lpstrDefExt
,
lpstrFilter
,
lpstrTitle
);
lpstrFilter
,
lpstrTitle
);
...
@@ -256,7 +256,7 @@ int WINAPI SHShellFolderView_Message(
...
@@ -256,7 +256,7 @@ int WINAPI SHShellFolderView_Message(
DWORD
dwMessage
,
DWORD
dwMessage
,
DWORD
dwParam
)
DWORD
dwParam
)
{
{
FIXME
(
"%
04x
%08lx %08lx stub
\n
"
,
hwndCabinet
,
dwMessage
,
dwParam
);
FIXME
(
"%
p
%08lx %08lx stub
\n
"
,
hwndCabinet
,
dwMessage
,
dwParam
);
return
0
;
return
0
;
}
}
...
@@ -274,7 +274,7 @@ BOOL WINAPI RegisterShellHook(
...
@@ -274,7 +274,7 @@ BOOL WINAPI RegisterShellHook(
HWND
hWnd
,
HWND
hWnd
,
DWORD
dwType
)
DWORD
dwType
)
{
{
FIXME
(
"(
0x%08x
,0x%08lx):stub.
\n
"
,
hWnd
,
dwType
);
FIXME
(
"(
%p
,0x%08lx):stub.
\n
"
,
hWnd
,
dwType
);
return
TRUE
;
return
TRUE
;
}
}
/*************************************************************************
/*************************************************************************
...
@@ -379,7 +379,7 @@ HRESULT WINAPI SHRegisterDragDrop(
...
@@ -379,7 +379,7 @@ HRESULT WINAPI SHRegisterDragDrop(
HWND
hWnd
,
HWND
hWnd
,
LPDROPTARGET
pDropTarget
)
LPDROPTARGET
pDropTarget
)
{
{
FIXME
(
"(
0x%08x
,%p):stub.
\n
"
,
hWnd
,
pDropTarget
);
FIXME
(
"(
%p
,%p):stub.
\n
"
,
hWnd
,
pDropTarget
);
if
(
GetShellOle
())
return
pRegisterDragDrop
(
hWnd
,
pDropTarget
);
if
(
GetShellOle
())
return
pRegisterDragDrop
(
hWnd
,
pDropTarget
);
return
0
;
return
0
;
}
}
...
@@ -392,7 +392,7 @@ HRESULT WINAPI SHRegisterDragDrop(
...
@@ -392,7 +392,7 @@ HRESULT WINAPI SHRegisterDragDrop(
*/
*/
HRESULT
WINAPI
SHRevokeDragDrop
(
HWND
hWnd
)
HRESULT
WINAPI
SHRevokeDragDrop
(
HWND
hWnd
)
{
{
FIXME
(
"(
0x%08x
):stub.
\n
"
,
hWnd
);
FIXME
(
"(
%p
):stub.
\n
"
,
hWnd
);
return
0
;
return
0
;
}
}
...
@@ -409,7 +409,7 @@ HRESULT WINAPI SHDoDragDrop(
...
@@ -409,7 +409,7 @@ HRESULT WINAPI SHDoDragDrop(
DWORD
dwOKEffect
,
DWORD
dwOKEffect
,
LPDWORD
pdwEffect
)
LPDWORD
pdwEffect
)
{
{
FIXME
(
"(
0x%04x
%p %p 0x%08lx %p):stub.
\n
"
,
FIXME
(
"(
%p
%p %p 0x%08lx %p):stub.
\n
"
,
hWnd
,
lpDataObject
,
lpDropSource
,
dwOKEffect
,
pdwEffect
);
hWnd
,
lpDataObject
,
lpDropSource
,
dwOKEffect
,
pdwEffect
);
return
0
;
return
0
;
}
}
...
@@ -425,7 +425,7 @@ WORD WINAPI ArrangeWindows(
...
@@ -425,7 +425,7 @@ WORD WINAPI ArrangeWindows(
WORD
cKids
,
WORD
cKids
,
CONST
HWND
*
lpKids
)
CONST
HWND
*
lpKids
)
{
{
FIXME
(
"(
0x%08x
0x%08lx %p 0x%04x %p):stub.
\n
"
,
FIXME
(
"(
%p
0x%08lx %p 0x%04x %p):stub.
\n
"
,
hwndParent
,
dwReserved
,
lpRect
,
cKids
,
lpKids
);
hwndParent
,
dwReserved
,
lpRect
,
cKids
,
lpKids
);
return
0
;
return
0
;
}
}
...
@@ -979,7 +979,7 @@ void WINAPI SHFreeUnusedLibraries (void)
...
@@ -979,7 +979,7 @@ void WINAPI SHFreeUnusedLibraries (void)
*/
*/
DWORD
WINAPI
DAD_AutoScroll
(
HWND
hwnd
,
LPSCROLLSAMPLES
samples
,
LPPOINT
pt
)
DWORD
WINAPI
DAD_AutoScroll
(
HWND
hwnd
,
LPSCROLLSAMPLES
samples
,
LPPOINT
pt
)
{
{
FIXME
(
"hwnd = %
04x
%p %p
\n
"
,
hwnd
,
samples
,
pt
);
FIXME
(
"hwnd = %
p
%p %p
\n
"
,
hwnd
,
samples
,
pt
);
return
0
;
return
0
;
}
}
/*************************************************************************
/*************************************************************************
...
@@ -988,7 +988,7 @@ DWORD WINAPI DAD_AutoScroll(HWND hwnd, LPSCROLLSAMPLES samples, LPPOINT pt)
...
@@ -988,7 +988,7 @@ DWORD WINAPI DAD_AutoScroll(HWND hwnd, LPSCROLLSAMPLES samples, LPPOINT pt)
*/
*/
BOOL
WINAPI
DAD_DragEnter
(
HWND
hwnd
)
BOOL
WINAPI
DAD_DragEnter
(
HWND
hwnd
)
{
{
FIXME
(
"hwnd = %
04x
\n
"
,
hwnd
);
FIXME
(
"hwnd = %
p
\n
"
,
hwnd
);
return
FALSE
;
return
FALSE
;
}
}
/*************************************************************************
/*************************************************************************
...
@@ -997,7 +997,7 @@ BOOL WINAPI DAD_DragEnter(HWND hwnd)
...
@@ -997,7 +997,7 @@ BOOL WINAPI DAD_DragEnter(HWND hwnd)
*/
*/
BOOL
WINAPI
DAD_DragEnterEx
(
HWND
hwnd
,
POINT
p
)
BOOL
WINAPI
DAD_DragEnterEx
(
HWND
hwnd
,
POINT
p
)
{
{
FIXME
(
"hwnd = %
04x
(%ld,%ld)
\n
"
,
hwnd
,
p
.
x
,
p
.
y
);
FIXME
(
"hwnd = %
p
(%ld,%ld)
\n
"
,
hwnd
,
p
.
x
,
p
.
y
);
return
FALSE
;
return
FALSE
;
}
}
/*************************************************************************
/*************************************************************************
...
@@ -1115,7 +1115,7 @@ HGLOBAL WINAPI SHAllocShared(LPVOID psrc, DWORD size, DWORD procID)
...
@@ -1115,7 +1115,7 @@ HGLOBAL WINAPI SHAllocShared(LPVOID psrc, DWORD size, DWORD procID)
* the return value seems to be a memory address
* the return value seems to be a memory address
*/
*/
LPVOID
WINAPI
SHLockShared
(
HANDLE
hmem
,
DWORD
procID
)
LPVOID
WINAPI
SHLockShared
(
HANDLE
hmem
,
DWORD
procID
)
{
TRACE
(
"handle=
0x%04x
procID=0x%04lx
\n
"
,
hmem
,
procID
);
{
TRACE
(
"handle=
%p
procID=0x%04lx
\n
"
,
hmem
,
procID
);
return
GlobalLock
(
hmem
);
return
GlobalLock
(
hmem
);
}
}
/*************************************************************************
/*************************************************************************
...
@@ -1140,15 +1140,15 @@ BOOL WINAPI SHFreeShared(
...
@@ -1140,15 +1140,15 @@ BOOL WINAPI SHFreeShared(
HANDLE
hMem
,
HANDLE
hMem
,
DWORD
pid
)
DWORD
pid
)
{
{
TRACE
(
"handle=
0x%04x
0x%04lx
\n
"
,
hMem
,
pid
);
TRACE
(
"handle=
%p
0x%04lx
\n
"
,
hMem
,
pid
);
return
GlobalFree
(
hMem
);
return
(
BOOL
)
GlobalFree
(
hMem
);
}
}
/*************************************************************************
/*************************************************************************
* SetAppStartingCursor [SHELL32.99]
* SetAppStartingCursor [SHELL32.99]
*/
*/
HRESULT
WINAPI
SetAppStartingCursor
(
HWND
u
,
DWORD
v
)
HRESULT
WINAPI
SetAppStartingCursor
(
HWND
u
,
DWORD
v
)
{
FIXME
(
"hwnd=
0x%04x
0x%04lx stub
\n
"
,
u
,
v
);
{
FIXME
(
"hwnd=
%p
0x%04lx stub
\n
"
,
u
,
v
);
return
0
;
return
0
;
}
}
/*************************************************************************
/*************************************************************************
...
@@ -1184,7 +1184,7 @@ int WINAPI SHOutOfMemoryMessageBox(
...
@@ -1184,7 +1184,7 @@ int WINAPI SHOutOfMemoryMessageBox(
LPCSTR
lpCaption
,
LPCSTR
lpCaption
,
UINT
uType
)
UINT
uType
)
{
{
FIXME
(
"
0x%04x
%s 0x%08x stub
\n
"
,
hwndOwner
,
lpCaption
,
uType
);
FIXME
(
"
%p
%s 0x%08x stub
\n
"
,
hwndOwner
,
lpCaption
,
uType
);
return
0
;
return
0
;
}
}
/*************************************************************************
/*************************************************************************
...
...
dlls/shell32/shellpath.c
View file @
991fd85d
...
@@ -1015,7 +1015,7 @@ BOOL WINAPI SHGetSpecialFolderPathA (
...
@@ -1015,7 +1015,7 @@ BOOL WINAPI SHGetSpecialFolderPathA (
DWORD
folder
=
csidl
&
CSIDL_FOLDER_MASK
;
DWORD
folder
=
csidl
&
CSIDL_FOLDER_MASK
;
CHAR
*
p
;
CHAR
*
p
;
TRACE
(
"
0x%04x
,%p,csidl=%lu,0x%04x
\n
"
,
hwndOwner
,
szPath
,
csidl
,
bCreate
);
TRACE
(
"
%p
,%p,csidl=%lu,0x%04x
\n
"
,
hwndOwner
,
szPath
,
csidl
,
bCreate
);
if
((
folder
>
CSIDL_COMPUTERSNEARME
)
||
(
CSIDL_Data
[
folder
].
hRootKey
==
0
))
if
((
folder
>
CSIDL_COMPUTERSNEARME
)
||
(
CSIDL_Data
[
folder
].
hRootKey
==
0
))
{
{
...
@@ -1164,7 +1164,7 @@ BOOL WINAPI SHGetSpecialFolderPathW (
...
@@ -1164,7 +1164,7 @@ BOOL WINAPI SHGetSpecialFolderPathW (
szPath
[
MAX_PATH
-
1
]
=
0
;
szPath
[
MAX_PATH
-
1
]
=
0
;
}
}
TRACE
(
"
0x%04x
,%p,csidl=%lu,0x%04x
\n
"
,
hwndOwner
,
szPath
,
csidl
,
bCreate
);
TRACE
(
"
%p
,%p,csidl=%lu,0x%04x
\n
"
,
hwndOwner
,
szPath
,
csidl
,
bCreate
);
return
TRUE
;
return
TRUE
;
}
}
...
...
dlls/shell32/shellreg.c
View file @
991fd85d
...
@@ -46,7 +46,7 @@ HRESULT WINAPI SHRegOpenKeyA(
...
@@ -46,7 +46,7 @@ HRESULT WINAPI SHRegOpenKeyA(
LPSTR
lpSubKey
,
LPSTR
lpSubKey
,
PHKEY
phkResult
)
PHKEY
phkResult
)
{
{
TRACE
(
"(
0x%08x
, %s, %p)
\n
"
,
hKey
,
debugstr_a
(
lpSubKey
),
phkResult
);
TRACE
(
"(
%p
, %s, %p)
\n
"
,
hKey
,
debugstr_a
(
lpSubKey
),
phkResult
);
return
RegOpenKeyA
(
hKey
,
lpSubKey
,
phkResult
);
return
RegOpenKeyA
(
hKey
,
lpSubKey
,
phkResult
);
}
}
...
@@ -59,7 +59,7 @@ HRESULT WINAPI SHRegOpenKeyW (
...
@@ -59,7 +59,7 @@ HRESULT WINAPI SHRegOpenKeyW (
LPCWSTR
lpszSubKey
,
LPCWSTR
lpszSubKey
,
PHKEY
retkey
)
PHKEY
retkey
)
{
{
WARN
(
"
0x%04x
%s %p
\n
"
,
hkey
,
debugstr_w
(
lpszSubKey
),
retkey
);
WARN
(
"
%p
%s %p
\n
"
,
hkey
,
debugstr_w
(
lpszSubKey
),
retkey
);
return
RegOpenKeyW
(
hkey
,
lpszSubKey
,
retkey
);
return
RegOpenKeyW
(
hkey
,
lpszSubKey
,
retkey
);
}
}
...
@@ -75,7 +75,7 @@ HRESULT WINAPI SHRegQueryValueExA(
...
@@ -75,7 +75,7 @@ HRESULT WINAPI SHRegQueryValueExA(
LPBYTE
lpData
,
LPBYTE
lpData
,
LPDWORD
lpcbData
)
LPDWORD
lpcbData
)
{
{
TRACE
(
"
0x%04x
%s %p %p %p %p
\n
"
,
hkey
,
lpValueName
,
lpReserved
,
lpType
,
lpData
,
lpcbData
);
TRACE
(
"
%p
%s %p %p %p %p
\n
"
,
hkey
,
lpValueName
,
lpReserved
,
lpType
,
lpData
,
lpcbData
);
return
RegQueryValueExA
(
hkey
,
lpValueName
,
lpReserved
,
lpType
,
lpData
,
lpcbData
);
return
RegQueryValueExA
(
hkey
,
lpValueName
,
lpReserved
,
lpType
,
lpData
,
lpcbData
);
}
}
...
@@ -89,7 +89,7 @@ HRESULT WINAPI SHRegQueryValueW(
...
@@ -89,7 +89,7 @@ HRESULT WINAPI SHRegQueryValueW(
LPWSTR
lpszData
,
LPWSTR
lpszData
,
LPDWORD
lpcbData
)
LPDWORD
lpcbData
)
{
{
WARN
(
"
0x%04x
%s %p %p semi-stub
\n
"
,
WARN
(
"
%p
%s %p %p semi-stub
\n
"
,
hkey
,
debugstr_w
(
lpszSubKey
),
lpszData
,
lpcbData
);
hkey
,
debugstr_w
(
lpszSubKey
),
lpszData
,
lpcbData
);
return
RegQueryValueW
(
hkey
,
lpszSubKey
,
lpszData
,
lpcbData
);
return
RegQueryValueW
(
hkey
,
lpszSubKey
,
lpszData
,
lpcbData
);
}
}
...
@@ -110,7 +110,7 @@ HRESULT WINAPI SHRegQueryValueExW (
...
@@ -110,7 +110,7 @@ HRESULT WINAPI SHRegQueryValueExW (
LPDWORD
pcbData
)
LPDWORD
pcbData
)
{
{
DWORD
ret
;
DWORD
ret
;
WARN
(
"
0x%04x
%s %p %p %p %p semi-stub
\n
"
,
WARN
(
"
%p
%s %p %p %p %p semi-stub
\n
"
,
hkey
,
debugstr_w
(
pszValue
),
pdwReserved
,
pdwType
,
pvData
,
pcbData
);
hkey
,
debugstr_w
(
pszValue
),
pdwReserved
,
pdwType
,
pvData
,
pcbData
);
ret
=
RegQueryValueExW
(
hkey
,
pszValue
,
pdwReserved
,
pdwType
,
pvData
,
pcbData
);
ret
=
RegQueryValueExW
(
hkey
,
pszValue
,
pdwReserved
,
pdwType
,
pvData
,
pcbData
);
return
ret
;
return
ret
;
...
@@ -123,7 +123,7 @@ HRESULT WINAPI SHRegDeleteKeyA(
...
@@ -123,7 +123,7 @@ HRESULT WINAPI SHRegDeleteKeyA(
HKEY
hkey
,
HKEY
hkey
,
LPCSTR
pszSubKey
)
LPCSTR
pszSubKey
)
{
{
FIXME
(
"hkey=
0x%08x
, %s
\n
"
,
hkey
,
debugstr_a
(
pszSubKey
));
FIXME
(
"hkey=
%p
, %s
\n
"
,
hkey
,
debugstr_a
(
pszSubKey
));
return
0
;
return
0
;
}
}
...
@@ -134,7 +134,7 @@ HRESULT WINAPI SHRegDeleteKeyW(
...
@@ -134,7 +134,7 @@ HRESULT WINAPI SHRegDeleteKeyW(
HKEY
hkey
,
HKEY
hkey
,
LPCWSTR
pszSubKey
)
LPCWSTR
pszSubKey
)
{
{
FIXME
(
"hkey=
0x%08x
, %s
\n
"
,
hkey
,
debugstr_w
(
pszSubKey
));
FIXME
(
"hkey=
%p
, %s
\n
"
,
hkey
,
debugstr_w
(
pszSubKey
));
return
0
;
return
0
;
}
}
...
@@ -144,6 +144,6 @@ HRESULT WINAPI SHRegDeleteKeyW(
...
@@ -144,6 +144,6 @@ HRESULT WINAPI SHRegDeleteKeyW(
*/
*/
HRESULT
WINAPI
SHRegCloseKey
(
HKEY
hkey
)
HRESULT
WINAPI
SHRegCloseKey
(
HKEY
hkey
)
{
{
TRACE
(
"
0x%04x
\n
"
,
hkey
);
TRACE
(
"
%p
\n
"
,
hkey
);
return
RegCloseKey
(
hkey
);
return
RegCloseKey
(
hkey
);
}
}
dlls/shell32/shfldr_desktop.c
View file @
991fd85d
...
@@ -198,7 +198,7 @@ static HRESULT WINAPI ISF_Desktop_fnParseDisplayName (IShellFolder2 * iface,
...
@@ -198,7 +198,7 @@ static HRESULT WINAPI ISF_Desktop_fnParseDisplayName (IShellFolder2 * iface,
HRESULT
hr
=
E_OUTOFMEMORY
;
HRESULT
hr
=
E_OUTOFMEMORY
;
CLSID
clsid
;
CLSID
clsid
;
TRACE
(
"(%p)->(HWND=
0x%08x
,%p,%p=%s,%p,pidl=%p,%p)
\n
"
,
TRACE
(
"(%p)->(HWND=
%p
,%p,%p=%s,%p,pidl=%p,%p)
\n
"
,
This
,
hwndOwner
,
pbcReserved
,
lpszDisplayName
,
debugstr_w
(
lpszDisplayName
),
pchEaten
,
ppidl
,
pdwAttributes
);
This
,
hwndOwner
,
pbcReserved
,
lpszDisplayName
,
debugstr_w
(
lpszDisplayName
),
pchEaten
,
ppidl
,
pdwAttributes
);
*
ppidl
=
0
;
*
ppidl
=
0
;
...
@@ -252,7 +252,7 @@ static HRESULT WINAPI ISF_Desktop_fnEnumObjects (IShellFolder2 * iface,
...
@@ -252,7 +252,7 @@ static HRESULT WINAPI ISF_Desktop_fnEnumObjects (IShellFolder2 * iface,
{
{
ICOM_THIS
(
IGenericSFImpl
,
iface
);
ICOM_THIS
(
IGenericSFImpl
,
iface
);
TRACE
(
"(%p)->(HWND=
0x%08x
flags=0x%08lx pplist=%p)
\n
"
,
This
,
hwndOwner
,
dwFlags
,
ppEnumIDList
);
TRACE
(
"(%p)->(HWND=
%p
flags=0x%08lx pplist=%p)
\n
"
,
This
,
hwndOwner
,
dwFlags
,
ppEnumIDList
);
*
ppEnumIDList
=
NULL
;
*
ppEnumIDList
=
NULL
;
*
ppEnumIDList
=
IEnumIDList_Constructor
(
NULL
,
dwFlags
,
EIDL_DESK
);
*
ppEnumIDList
=
IEnumIDList_Constructor
(
NULL
,
dwFlags
,
EIDL_DESK
);
...
@@ -320,7 +320,7 @@ static HRESULT WINAPI ISF_Desktop_fnCreateViewObject (IShellFolder2 * iface,
...
@@ -320,7 +320,7 @@ static HRESULT WINAPI ISF_Desktop_fnCreateViewObject (IShellFolder2 * iface,
LPSHELLVIEW
pShellView
;
LPSHELLVIEW
pShellView
;
HRESULT
hr
=
E_INVALIDARG
;
HRESULT
hr
=
E_INVALIDARG
;
TRACE
(
"(%p)->(hwnd=
0x%x
,%s,%p)
\n
"
,
This
,
hwndOwner
,
shdebugstr_guid
(
riid
),
ppvOut
);
TRACE
(
"(%p)->(hwnd=
%p
,%s,%p)
\n
"
,
This
,
hwndOwner
,
shdebugstr_guid
(
riid
),
ppvOut
);
if
(
ppvOut
)
{
if
(
ppvOut
)
{
*
ppvOut
=
NULL
;
*
ppvOut
=
NULL
;
...
@@ -394,7 +394,7 @@ static HRESULT WINAPI ISF_Desktop_fnGetUIObjectOf (IShellFolder2 * iface,
...
@@ -394,7 +394,7 @@ static HRESULT WINAPI ISF_Desktop_fnGetUIObjectOf (IShellFolder2 * iface,
IUnknown
*
pObj
=
NULL
;
IUnknown
*
pObj
=
NULL
;
HRESULT
hr
=
E_INVALIDARG
;
HRESULT
hr
=
E_INVALIDARG
;
TRACE
(
"(%p)->(
0x%04x
,%u,apidl=%p,%s,%p,%p)
\n
"
,
TRACE
(
"(%p)->(
%p
,%u,apidl=%p,%s,%p,%p)
\n
"
,
This
,
hwndOwner
,
cidl
,
apidl
,
shdebugstr_guid
(
riid
),
prgfInOut
,
ppvOut
);
This
,
hwndOwner
,
cidl
,
apidl
,
shdebugstr_guid
(
riid
),
prgfInOut
,
ppvOut
);
if
(
ppvOut
)
{
if
(
ppvOut
)
{
...
@@ -536,7 +536,7 @@ static HRESULT WINAPI ISF_Desktop_fnSetNameOf (IShellFolder2 * iface, HWND hwndO
...
@@ -536,7 +536,7 @@ static HRESULT WINAPI ISF_Desktop_fnSetNameOf (IShellFolder2 * iface, HWND hwndO
{
{
ICOM_THIS
(
IGenericSFImpl
,
iface
);
ICOM_THIS
(
IGenericSFImpl
,
iface
);
FIXME
(
"(%p)->(%
u
,pidl=%p,%s,%lu,%p)
\n
"
,
This
,
hwndOwner
,
pidl
,
debugstr_w
(
lpName
),
dwFlags
,
pPidlOut
);
FIXME
(
"(%p)->(%
p
,pidl=%p,%s,%lu,%p)
\n
"
,
This
,
hwndOwner
,
pidl
,
debugstr_w
(
lpName
),
dwFlags
,
pPidlOut
);
return
E_FAIL
;
return
E_FAIL
;
}
}
...
...
dlls/shell32/shfldr_fs.c
View file @
991fd85d
...
@@ -326,7 +326,7 @@ IShellFolder_fnParseDisplayName (IShellFolder2 * iface,
...
@@ -326,7 +326,7 @@ IShellFolder_fnParseDisplayName (IShellFolder2 * iface,
szPath
[
MAX_PATH
];
szPath
[
MAX_PATH
];
LPITEMIDLIST
pidlTemp
=
NULL
;
LPITEMIDLIST
pidlTemp
=
NULL
;
TRACE
(
"(%p)->(HWND=
0x%08x
,%p,%p=%s,%p,pidl=%p,%p)
\n
"
,
TRACE
(
"(%p)->(HWND=
%p
,%p,%p=%s,%p,pidl=%p,%p)
\n
"
,
This
,
hwndOwner
,
pbcReserved
,
lpszDisplayName
,
debugstr_w
(
lpszDisplayName
),
pchEaten
,
ppidl
,
pdwAttributes
);
This
,
hwndOwner
,
pbcReserved
,
lpszDisplayName
,
debugstr_w
(
lpszDisplayName
),
pchEaten
,
ppidl
,
pdwAttributes
);
if
(
!
lpszDisplayName
||
!
ppidl
)
if
(
!
lpszDisplayName
||
!
ppidl
)
...
@@ -384,7 +384,7 @@ IShellFolder_fnEnumObjects (IShellFolder2 * iface, HWND hwndOwner, DWORD dwFlags
...
@@ -384,7 +384,7 @@ IShellFolder_fnEnumObjects (IShellFolder2 * iface, HWND hwndOwner, DWORD dwFlags
{
{
_ICOM_THIS_From_IShellFolder2
(
IGenericSFImpl
,
iface
)
_ICOM_THIS_From_IShellFolder2
(
IGenericSFImpl
,
iface
)
TRACE
(
"(%p)->(HWND=
0x%08x
flags=0x%08lx pplist=%p)
\n
"
,
This
,
hwndOwner
,
dwFlags
,
ppEnumIDList
);
TRACE
(
"(%p)->(HWND=
%p
flags=0x%08lx pplist=%p)
\n
"
,
This
,
hwndOwner
,
dwFlags
,
ppEnumIDList
);
*
ppEnumIDList
=
IEnumIDList_Constructor
(
This
->
sPathTarget
,
dwFlags
,
EIDL_FILE
);
*
ppEnumIDList
=
IEnumIDList_Constructor
(
This
->
sPathTarget
,
dwFlags
,
EIDL_FILE
);
...
@@ -458,7 +458,7 @@ IShellFolder_fnCreateViewObject (IShellFolder2 * iface, HWND hwndOwner, REFIID r
...
@@ -458,7 +458,7 @@ IShellFolder_fnCreateViewObject (IShellFolder2 * iface, HWND hwndOwner, REFIID r
LPSHELLVIEW
pShellView
;
LPSHELLVIEW
pShellView
;
HRESULT
hr
=
E_INVALIDARG
;
HRESULT
hr
=
E_INVALIDARG
;
TRACE
(
"(%p)->(hwnd=
0x%x
,%s,%p)
\n
"
,
This
,
hwndOwner
,
shdebugstr_guid
(
riid
),
ppvOut
);
TRACE
(
"(%p)->(hwnd=
%p
,%s,%p)
\n
"
,
This
,
hwndOwner
,
shdebugstr_guid
(
riid
),
ppvOut
);
if
(
ppvOut
)
{
if
(
ppvOut
)
{
*
ppvOut
=
NULL
;
*
ppvOut
=
NULL
;
...
@@ -545,7 +545,7 @@ IShellFolder_fnGetUIObjectOf (IShellFolder2 * iface,
...
@@ -545,7 +545,7 @@ IShellFolder_fnGetUIObjectOf (IShellFolder2 * iface,
IUnknown
*
pObj
=
NULL
;
IUnknown
*
pObj
=
NULL
;
HRESULT
hr
=
E_INVALIDARG
;
HRESULT
hr
=
E_INVALIDARG
;
TRACE
(
"(%p)->(
0x%04x
,%u,apidl=%p,%s,%p,%p)
\n
"
,
TRACE
(
"(%p)->(
%p
,%u,apidl=%p,%s,%p,%p)
\n
"
,
This
,
hwndOwner
,
cidl
,
apidl
,
shdebugstr_guid
(
riid
),
prgfInOut
,
ppvOut
);
This
,
hwndOwner
,
cidl
,
apidl
,
shdebugstr_guid
(
riid
),
prgfInOut
,
ppvOut
);
if
(
ppvOut
)
{
if
(
ppvOut
)
{
...
@@ -680,7 +680,7 @@ static HRESULT WINAPI IShellFolder_fnSetNameOf (IShellFolder2 * iface, HWND hwnd
...
@@ -680,7 +680,7 @@ static HRESULT WINAPI IShellFolder_fnSetNameOf (IShellFolder2 * iface, HWND hwnd
int
len
;
int
len
;
BOOL
bIsFolder
=
_ILIsFolder
(
ILFindLastID
(
pidl
));
BOOL
bIsFolder
=
_ILIsFolder
(
ILFindLastID
(
pidl
));
TRACE
(
"(%p)->(%
u
,pidl=%p,%s,%lu,%p)
\n
"
,
This
,
hwndOwner
,
pidl
,
debugstr_w
(
lpName
),
dwFlags
,
pPidlOut
);
TRACE
(
"(%p)->(%
p
,pidl=%p,%s,%lu,%p)
\n
"
,
This
,
hwndOwner
,
pidl
,
debugstr_w
(
lpName
),
dwFlags
,
pPidlOut
);
/* build source path */
/* build source path */
if
(
dwFlags
&
SHGDN_INFOLDER
)
{
if
(
dwFlags
&
SHGDN_INFOLDER
)
{
...
...
dlls/shell32/shfldr_mycomp.c
View file @
991fd85d
...
@@ -200,7 +200,7 @@ ISF_MyComputer_fnParseDisplayName (IShellFolder2 * iface,
...
@@ -200,7 +200,7 @@ ISF_MyComputer_fnParseDisplayName (IShellFolder2 * iface,
CHAR
szTempA
[
MAX_PATH
];
CHAR
szTempA
[
MAX_PATH
];
LPITEMIDLIST
pidlTemp
;
LPITEMIDLIST
pidlTemp
;
TRACE
(
"(%p)->(HWND=
0x%08x
,%p,%p=%s,%p,pidl=%p,%p)
\n
"
,
TRACE
(
"(%p)->(HWND=
%p
,%p,%p=%s,%p,pidl=%p,%p)
\n
"
,
This
,
hwndOwner
,
pbcReserved
,
lpszDisplayName
,
debugstr_w
(
lpszDisplayName
),
pchEaten
,
ppidl
,
pdwAttributes
);
This
,
hwndOwner
,
pbcReserved
,
lpszDisplayName
,
debugstr_w
(
lpszDisplayName
),
pchEaten
,
ppidl
,
pdwAttributes
);
*
ppidl
=
0
;
*
ppidl
=
0
;
...
@@ -237,7 +237,7 @@ ISF_MyComputer_fnEnumObjects (IShellFolder2 * iface, HWND hwndOwner, DWORD dwFla
...
@@ -237,7 +237,7 @@ ISF_MyComputer_fnEnumObjects (IShellFolder2 * iface, HWND hwndOwner, DWORD dwFla
{
{
ICOM_THIS
(
IGenericSFImpl
,
iface
);
ICOM_THIS
(
IGenericSFImpl
,
iface
);
TRACE
(
"(%p)->(HWND=
0x%08x
flags=0x%08lx pplist=%p)
\n
"
,
This
,
hwndOwner
,
dwFlags
,
ppEnumIDList
);
TRACE
(
"(%p)->(HWND=
%p
flags=0x%08lx pplist=%p)
\n
"
,
This
,
hwndOwner
,
dwFlags
,
ppEnumIDList
);
*
ppEnumIDList
=
IEnumIDList_Constructor
(
NULL
,
dwFlags
,
EIDL_MYCOMP
);
*
ppEnumIDList
=
IEnumIDList_Constructor
(
NULL
,
dwFlags
,
EIDL_MYCOMP
);
...
@@ -303,7 +303,7 @@ ISF_MyComputer_fnCreateViewObject (IShellFolder2 * iface, HWND hwndOwner, REFIID
...
@@ -303,7 +303,7 @@ ISF_MyComputer_fnCreateViewObject (IShellFolder2 * iface, HWND hwndOwner, REFIID
LPSHELLVIEW
pShellView
;
LPSHELLVIEW
pShellView
;
HRESULT
hr
=
E_INVALIDARG
;
HRESULT
hr
=
E_INVALIDARG
;
TRACE
(
"(%p)->(hwnd=
0x%x
,%s,%p)
\n
"
,
This
,
hwndOwner
,
shdebugstr_guid
(
riid
),
ppvOut
);
TRACE
(
"(%p)->(hwnd=
%p
,%s,%p)
\n
"
,
This
,
hwndOwner
,
shdebugstr_guid
(
riid
),
ppvOut
);
if
(
ppvOut
)
{
if
(
ppvOut
)
{
*
ppvOut
=
NULL
;
*
ppvOut
=
NULL
;
...
@@ -375,7 +375,7 @@ ISF_MyComputer_fnGetUIObjectOf (IShellFolder2 * iface,
...
@@ -375,7 +375,7 @@ ISF_MyComputer_fnGetUIObjectOf (IShellFolder2 * iface,
IUnknown
*
pObj
=
NULL
;
IUnknown
*
pObj
=
NULL
;
HRESULT
hr
=
E_INVALIDARG
;
HRESULT
hr
=
E_INVALIDARG
;
TRACE
(
"(%p)->(
0x%04x
,%u,apidl=%p,%s,%p,%p)
\n
"
,
TRACE
(
"(%p)->(
%p
,%u,apidl=%p,%s,%p,%p)
\n
"
,
This
,
hwndOwner
,
cidl
,
apidl
,
shdebugstr_guid
(
riid
),
prgfInOut
,
ppvOut
);
This
,
hwndOwner
,
cidl
,
apidl
,
shdebugstr_guid
(
riid
),
prgfInOut
,
ppvOut
);
if
(
ppvOut
)
{
if
(
ppvOut
)
{
...
@@ -495,7 +495,7 @@ static HRESULT WINAPI ISF_MyComputer_fnSetNameOf (IShellFolder2 * iface, HWND hw
...
@@ -495,7 +495,7 @@ static HRESULT WINAPI ISF_MyComputer_fnSetNameOf (IShellFolder2 * iface, HWND hw
LPCOLESTR
lpName
,
DWORD
dwFlags
,
LPITEMIDLIST
*
pPidlOut
)
LPCOLESTR
lpName
,
DWORD
dwFlags
,
LPITEMIDLIST
*
pPidlOut
)
{
{
ICOM_THIS
(
IGenericSFImpl
,
iface
);
ICOM_THIS
(
IGenericSFImpl
,
iface
);
FIXME
(
"(%p)->(%
u
,pidl=%p,%s,%lu,%p)
\n
"
,
This
,
hwndOwner
,
pidl
,
debugstr_w
(
lpName
),
dwFlags
,
pPidlOut
);
FIXME
(
"(%p)->(%
p
,pidl=%p,%s,%lu,%p)
\n
"
,
This
,
hwndOwner
,
pidl
,
debugstr_w
(
lpName
),
dwFlags
,
pPidlOut
);
return
E_FAIL
;
return
E_FAIL
;
}
}
...
...
dlls/shell32/shlexec.c
View file @
991fd85d
...
@@ -108,11 +108,11 @@ static BOOL argify(char* res, int len, const char* fmt, const char* lpFile)
...
@@ -108,11 +108,11 @@ static BOOL argify(char* res, int len, const char* fmt, const char* lpFile)
* SHELL_ExecuteA [Internal]
* SHELL_ExecuteA [Internal]
*
*
*/
*/
static
HINSTANCE
SHELL_ExecuteA
(
char
*
lpCmd
,
LPSHELLEXECUTEINFOA
sei
,
BOOL
shWait
)
static
UINT
SHELL_ExecuteA
(
char
*
lpCmd
,
LPSHELLEXECUTEINFOA
sei
,
BOOL
shWait
)
{
{
STARTUPINFOA
startup
;
STARTUPINFOA
startup
;
PROCESS_INFORMATION
info
;
PROCESS_INFORMATION
info
;
HINSTANCE
retval
=
31
;
UINT
retval
=
31
;
TRACE
(
"Execute %s from directory %s
\n
"
,
lpCmd
,
sei
->
lpDirectory
);
TRACE
(
"Execute %s from directory %s
\n
"
,
lpCmd
,
sei
->
lpDirectory
);
ZeroMemory
(
&
startup
,
sizeof
(
STARTUPINFOA
));
ZeroMemory
(
&
startup
,
sizeof
(
STARTUPINFOA
));
...
@@ -127,20 +127,20 @@ static HINSTANCE SHELL_ExecuteA(char *lpCmd, LPSHELLEXECUTEINFOA sei, BOOL shWai
...
@@ -127,20 +127,20 @@ static HINSTANCE SHELL_ExecuteA(char *lpCmd, LPSHELLEXECUTEINFOA sei, BOOL shWai
if
(
shWait
)
if
(
shWait
)
if
(
WaitForInputIdle
(
info
.
hProcess
,
30000
)
==
-
1
)
if
(
WaitForInputIdle
(
info
.
hProcess
,
30000
)
==
-
1
)
WARN
(
"WaitForInputIdle failed: Error %ld
\n
"
,
GetLastError
()
);
WARN
(
"WaitForInputIdle failed: Error %ld
\n
"
,
GetLastError
()
);
retval
=
(
HINSTANCE
)
33
;
retval
=
33
;
if
(
sei
->
fMask
&
SEE_MASK_NOCLOSEPROCESS
)
if
(
sei
->
fMask
&
SEE_MASK_NOCLOSEPROCESS
)
sei
->
hProcess
=
info
.
hProcess
;
sei
->
hProcess
=
info
.
hProcess
;
else
else
CloseHandle
(
info
.
hProcess
);
CloseHandle
(
info
.
hProcess
);
CloseHandle
(
info
.
hThread
);
CloseHandle
(
info
.
hThread
);
}
}
else
if
((
retval
=
GetLastError
())
>=
(
HINSTANCE
)
32
)
else
if
((
retval
=
GetLastError
())
>=
32
)
{
{
FIXME
(
"Strange error set by CreateProcess: %d
\n
"
,
retval
);
FIXME
(
"Strange error set by CreateProcess: %d
\n
"
,
retval
);
retval
=
(
HINSTANCE
)
ERROR_BAD_FORMAT
;
retval
=
ERROR_BAD_FORMAT
;
}
}
sei
->
hInstApp
=
retval
;
sei
->
hInstApp
=
(
HINSTANCE
)
retval
;
return
retval
;
return
retval
;
}
}
...
@@ -158,7 +158,7 @@ static HINSTANCE SHELL_ExecuteA(char *lpCmd, LPSHELLEXECUTEINFOA sei, BOOL shWai
...
@@ -158,7 +158,7 @@ static HINSTANCE SHELL_ExecuteA(char *lpCmd, LPSHELLEXECUTEINFOA sei, BOOL shWai
* command (it'll be used afterwards for more information
* command (it'll be used afterwards for more information
* on the operation)
* on the operation)
*/
*/
static
HINSTANCE
SHELL_FindExecutable
(
LPCSTR
lpPath
,
LPCSTR
lpFile
,
LPCSTR
lpOperation
,
static
UINT
SHELL_FindExecutable
(
LPCSTR
lpPath
,
LPCSTR
lpFile
,
LPCSTR
lpOperation
,
LPSTR
lpResult
,
LPSTR
key
)
LPSTR
lpResult
,
LPSTR
key
)
{
{
char
*
extension
=
NULL
;
/* pointer to file extension */
char
*
extension
=
NULL
;
/* pointer to file extension */
...
@@ -168,7 +168,7 @@ static HINSTANCE SHELL_FindExecutable(LPCSTR lpPath, LPCSTR lpFile, LPCSTR lpOpe
...
@@ -168,7 +168,7 @@ static HINSTANCE SHELL_FindExecutable(LPCSTR lpPath, LPCSTR lpFile, LPCSTR lpOpe
char
command
[
256
];
/* command from registry */
char
command
[
256
];
/* command from registry */
LONG
commandlen
=
256
;
/* This is the most DOS can handle :) */
LONG
commandlen
=
256
;
/* This is the most DOS can handle :) */
char
buffer
[
256
];
/* Used to GetProfileString */
char
buffer
[
256
];
/* Used to GetProfileString */
HINSTANCE
retval
=
31
;
/* default - 'No association was found' */
UINT
retval
=
31
;
/* default - 'No association was found' */
char
*
tok
;
/* token pointer */
char
*
tok
;
/* token pointer */
int
i
;
/* random counter */
int
i
;
/* random counter */
char
xlpFile
[
256
]
=
""
;
/* result of SearchPath */
char
xlpFile
[
256
]
=
""
;
/* result of SearchPath */
...
@@ -418,11 +418,11 @@ static unsigned dde_connect(char* key, char* start, char* ddeexec,
...
@@ -418,11 +418,11 @@ static unsigned dde_connect(char* key, char* start, char* ddeexec,
/*************************************************************************
/*************************************************************************
* execute_from_key [Internal]
* execute_from_key [Internal]
*/
*/
static
HINSTANCE
execute_from_key
(
LPSTR
key
,
LPCSTR
lpFile
,
LPSHELLEXECUTEINFOA
sei
,
SHELL_ExecuteA1632
execfunc
)
static
UINT
execute_from_key
(
LPSTR
key
,
LPCSTR
lpFile
,
LPSHELLEXECUTEINFOA
sei
,
SHELL_ExecuteA1632
execfunc
)
{
{
char
cmd
[
1024
]
=
""
;
char
cmd
[
1024
]
=
""
;
LONG
cmdlen
=
sizeof
(
cmd
);
LONG
cmdlen
=
sizeof
(
cmd
);
HINSTANCE
retval
=
31
;
UINT
retval
=
31
;
/* Get the application for the registry */
/* Get the application for the registry */
if
(
RegQueryValueA
(
HKEY_CLASSES_ROOT
,
key
,
cmd
,
&
cmdlen
)
==
ERROR_SUCCESS
)
if
(
RegQueryValueA
(
HKEY_CLASSES_ROOT
,
key
,
cmd
,
&
cmdlen
)
==
ERROR_SUCCESS
)
...
@@ -460,7 +460,7 @@ static HINSTANCE execute_from_key(LPSTR key, LPCSTR lpFile, LPSHELLEXECUTEINFOA
...
@@ -460,7 +460,7 @@ static HINSTANCE execute_from_key(LPSTR key, LPCSTR lpFile, LPSHELLEXECUTEINFOA
*/
*/
HINSTANCE
WINAPI
FindExecutableA
(
LPCSTR
lpFile
,
LPCSTR
lpDirectory
,
LPSTR
lpResult
)
HINSTANCE
WINAPI
FindExecutableA
(
LPCSTR
lpFile
,
LPCSTR
lpDirectory
,
LPSTR
lpResult
)
{
{
HINSTANCE
retval
=
31
;
/* default - 'No association was found' */
UINT
retval
=
31
;
/* default - 'No association was found' */
char
old_dir
[
1024
];
char
old_dir
[
1024
];
TRACE
(
"File %s, Dir %s
\n
"
,
TRACE
(
"File %s, Dir %s
\n
"
,
...
@@ -472,7 +472,7 @@ HINSTANCE WINAPI FindExecutableA(LPCSTR lpFile, LPCSTR lpDirectory, LPSTR lpResu
...
@@ -472,7 +472,7 @@ HINSTANCE WINAPI FindExecutableA(LPCSTR lpFile, LPCSTR lpDirectory, LPSTR lpResu
if
((
lpFile
==
NULL
)
||
(
lpResult
==
NULL
))
if
((
lpFile
==
NULL
)
||
(
lpResult
==
NULL
))
{
{
/* FIXME - should throw a warning, perhaps! */
/* FIXME - should throw a warning, perhaps! */
return
2
;
/* File not found. Close enough, I guess. */
return
(
HINSTANCE
)
2
;
/* File not found. Close enough, I guess. */
}
}
if
(
lpDirectory
)
if
(
lpDirectory
)
...
@@ -486,7 +486,7 @@ HINSTANCE WINAPI FindExecutableA(LPCSTR lpFile, LPCSTR lpDirectory, LPSTR lpResu
...
@@ -486,7 +486,7 @@ HINSTANCE WINAPI FindExecutableA(LPCSTR lpFile, LPCSTR lpDirectory, LPSTR lpResu
TRACE
(
"returning %s
\n
"
,
lpResult
);
TRACE
(
"returning %s
\n
"
,
lpResult
);
if
(
lpDirectory
)
if
(
lpDirectory
)
SetCurrentDirectoryA
(
old_dir
);
SetCurrentDirectoryA
(
old_dir
);
return
retval
;
return
(
HINSTANCE
)
retval
;
}
}
/*************************************************************************
/*************************************************************************
...
@@ -495,7 +495,7 @@ HINSTANCE WINAPI FindExecutableA(LPCSTR lpFile, LPCSTR lpDirectory, LPSTR lpResu
...
@@ -495,7 +495,7 @@ HINSTANCE WINAPI FindExecutableA(LPCSTR lpFile, LPCSTR lpDirectory, LPSTR lpResu
HINSTANCE
WINAPI
FindExecutableW
(
LPCWSTR
lpFile
,
LPCWSTR
lpDirectory
,
LPWSTR
lpResult
)
HINSTANCE
WINAPI
FindExecutableW
(
LPCWSTR
lpFile
,
LPCWSTR
lpDirectory
,
LPWSTR
lpResult
)
{
{
FIXME
(
"(%p,%p,%p): stub
\n
"
,
lpFile
,
lpDirectory
,
lpResult
);
FIXME
(
"(%p,%p,%p): stub
\n
"
,
lpFile
,
lpDirectory
,
lpResult
);
return
31
;
/* default - 'No association was found' */
return
(
HINSTANCE
)
31
;
/* default - 'No association was found' */
}
}
/*************************************************************************
/*************************************************************************
...
@@ -508,11 +508,11 @@ BOOL WINAPI ShellExecuteExA32 (LPSHELLEXECUTEINFOA sei, SHELL_ExecuteA1632 execf
...
@@ -508,11 +508,11 @@ BOOL WINAPI ShellExecuteExA32 (LPSHELLEXECUTEINFOA sei, SHELL_ExecuteA1632 execf
int
gap
,
len
;
int
gap
,
len
;
char
lpstrProtocol
[
256
];
char
lpstrProtocol
[
256
];
LPCSTR
lpFile
,
lpOperation
;
LPCSTR
lpFile
,
lpOperation
;
HINSTANCE
retval
=
31
;
UINT
retval
=
31
;
char
cmd
[
1024
];
char
cmd
[
1024
];
BOOL
done
;
BOOL
done
;
TRACE
(
"mask=0x%08lx hwnd=
0x%04x
verb=%s file=%s parm=%s dir=%s show=0x%08x class=%s
\n
"
,
TRACE
(
"mask=0x%08lx hwnd=
%p
verb=%s file=%s parm=%s dir=%s show=0x%08x class=%s
\n
"
,
sei
->
fMask
,
sei
->
hwnd
,
debugstr_a
(
sei
->
lpVerb
),
sei
->
fMask
,
sei
->
hwnd
,
debugstr_a
(
sei
->
lpVerb
),
debugstr_a
(
sei
->
lpFile
),
debugstr_a
(
sei
->
lpParameters
),
debugstr_a
(
sei
->
lpFile
),
debugstr_a
(
sei
->
lpParameters
),
debugstr_a
(
sei
->
lpDirectory
),
sei
->
nShow
,
debugstr_a
(
sei
->
lpDirectory
),
sei
->
nShow
,
...
@@ -656,16 +656,16 @@ BOOL WINAPI ShellExecuteExA32 (LPSHELLEXECUTEINFOA sei, SHELL_ExecuteA1632 execf
...
@@ -656,16 +656,16 @@ BOOL WINAPI ShellExecuteExA32 (LPSHELLEXECUTEINFOA sei, SHELL_ExecuteA1632 execf
/* if so, append lpFile http:// and call ShellExecute */
/* if so, append lpFile http:// and call ShellExecute */
char
lpstrTmpFile
[
256
]
=
"http://"
;
char
lpstrTmpFile
[
256
]
=
"http://"
;
strcat
(
lpstrTmpFile
,
lpFile
);
strcat
(
lpstrTmpFile
,
lpFile
);
retval
=
ShellExecuteA
(
sei
->
hwnd
,
lpOperation
,
lpstrTmpFile
,
NULL
,
NULL
,
0
);
retval
=
(
UINT
)
ShellExecuteA
(
sei
->
hwnd
,
lpOperation
,
lpstrTmpFile
,
NULL
,
NULL
,
0
);
}
}
if
(
retval
<=
32
)
if
(
retval
<=
32
)
{
{
sei
->
hInstApp
=
retval
;
sei
->
hInstApp
=
(
HINSTANCE
)
retval
;
return
FALSE
;
return
FALSE
;
}
}
sei
->
hInstApp
=
33
;
sei
->
hInstApp
=
(
HINSTANCE
)
33
;
return
TRUE
;
return
TRUE
;
}
}
...
...
dlls/shell32/shlmenu.c
View file @
991fd85d
...
@@ -134,7 +134,7 @@ static int FM_InitMenuPopup(HMENU hmenu, LPITEMIDLIST pAlternatePidl)
...
@@ -134,7 +134,7 @@ static int FM_InitMenuPopup(HMENU hmenu, LPITEMIDLIST pAlternatePidl)
MENUINFO
MenuInfo
;
MENUINFO
MenuInfo
;
LPFMINFO
menudata
;
LPFMINFO
menudata
;
TRACE
(
"
0x%04x
%p
\n
"
,
hmenu
,
pAlternatePidl
);
TRACE
(
"
%p
%p
\n
"
,
hmenu
,
pAlternatePidl
);
MenuInfo
.
cbSize
=
sizeof
(
MENUINFO
);
MenuInfo
.
cbSize
=
sizeof
(
MENUINFO
);
MenuInfo
.
fMask
=
MIM_MENUDATA
;
MenuInfo
.
fMask
=
MIM_MENUDATA
;
...
@@ -254,7 +254,7 @@ HMENU WINAPI FileMenu_Create (
...
@@ -254,7 +254,7 @@ HMENU WINAPI FileMenu_Create (
HMENU
hMenu
=
CreatePopupMenu
();
HMENU
hMenu
=
CreatePopupMenu
();
TRACE
(
"0x%08lx 0x%08x
0x%08x 0x%08x 0x%08x hMenu=0x%08x
\n
"
,
TRACE
(
"0x%08lx 0x%08x
%p 0x%08x 0x%08x hMenu=%p
\n
"
,
crBorderColor
,
nBorderWidth
,
hBorderBmp
,
nSelHeight
,
uFlags
,
hMenu
);
crBorderColor
,
nBorderWidth
,
hBorderBmp
,
nSelHeight
,
uFlags
,
hMenu
);
menudata
=
(
LPFMINFO
)
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
FMINFO
));
menudata
=
(
LPFMINFO
)
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
FMINFO
));
...
@@ -280,7 +280,7 @@ void WINAPI FileMenu_Destroy (HMENU hmenu)
...
@@ -280,7 +280,7 @@ void WINAPI FileMenu_Destroy (HMENU hmenu)
{
{
LPFMINFO
menudata
;
LPFMINFO
menudata
;
TRACE
(
"
0x%08x
\n
"
,
hmenu
);
TRACE
(
"
%p
\n
"
,
hmenu
);
FileMenu_DeleteAllItems
(
hmenu
);
FileMenu_DeleteAllItems
(
hmenu
);
...
@@ -313,7 +313,7 @@ static BOOL FileMenu_AppendItemA(
...
@@ -313,7 +313,7 @@ static BOOL FileMenu_AppendItemA(
MENUINFO
MenuInfo
;
MENUINFO
MenuInfo
;
TRACE
(
"
0x%08x %s 0x%08x 0x%08x 0x%08x
0x%08x
\n
"
,
TRACE
(
"
%p %s 0x%08x 0x%08x %p
0x%08x
\n
"
,
hMenu
,
(
lpszText
!=
FM_SEPARATOR
)
?
lpText
:
NULL
,
hMenu
,
(
lpszText
!=
FM_SEPARATOR
)
?
lpText
:
NULL
,
uID
,
icon
,
hMenuPopup
,
nItemHeight
);
uID
,
icon
,
hMenuPopup
,
nItemHeight
);
...
@@ -410,7 +410,7 @@ int WINAPI FileMenu_InsertUsingPidl (
...
@@ -410,7 +410,7 @@ int WINAPI FileMenu_InsertUsingPidl (
UINT
uEnumFlags
,
UINT
uEnumFlags
,
LPFNFMCALLBACK
lpfnCallback
)
LPFNFMCALLBACK
lpfnCallback
)
{
{
TRACE
(
"
0x%08x
0x%08x %p 0x%08x 0x%08x %p
\n
"
,
TRACE
(
"
%p
0x%08x %p 0x%08x 0x%08x %p
\n
"
,
hmenu
,
uID
,
pidl
,
uFlags
,
uEnumFlags
,
lpfnCallback
);
hmenu
,
uID
,
pidl
,
uFlags
,
uEnumFlags
,
lpfnCallback
);
pdump
(
pidl
);
pdump
(
pidl
);
...
@@ -434,7 +434,7 @@ int WINAPI FileMenu_ReplaceUsingPidl(
...
@@ -434,7 +434,7 @@ int WINAPI FileMenu_ReplaceUsingPidl(
UINT
uEnumFlags
,
UINT
uEnumFlags
,
LPFNFMCALLBACK
lpfnCallback
)
LPFNFMCALLBACK
lpfnCallback
)
{
{
TRACE
(
"
0x%08x
0x%08x %p 0x%08x %p
\n
"
,
TRACE
(
"
%p
0x%08x %p 0x%08x %p
\n
"
,
hmenu
,
uID
,
pidl
,
uEnumFlags
,
lpfnCallback
);
hmenu
,
uID
,
pidl
,
uEnumFlags
,
lpfnCallback
);
FileMenu_DeleteAllItems
(
hmenu
);
FileMenu_DeleteAllItems
(
hmenu
);
...
@@ -449,7 +449,7 @@ int WINAPI FileMenu_ReplaceUsingPidl(
...
@@ -449,7 +449,7 @@ int WINAPI FileMenu_ReplaceUsingPidl(
*/
*/
void
WINAPI
FileMenu_Invalidate
(
HMENU
hMenu
)
void
WINAPI
FileMenu_Invalidate
(
HMENU
hMenu
)
{
{
FIXME
(
"
0x%08x
\n
"
,
hMenu
);
FIXME
(
"
%p
\n
"
,
hMenu
);
}
}
/*************************************************************************
/*************************************************************************
...
@@ -459,7 +459,7 @@ HMENU WINAPI FileMenu_FindSubMenuByPidl(
...
@@ -459,7 +459,7 @@ HMENU WINAPI FileMenu_FindSubMenuByPidl(
HMENU
hMenu
,
HMENU
hMenu
,
LPCITEMIDLIST
pidl
)
LPCITEMIDLIST
pidl
)
{
{
FIXME
(
"
0x%08x
%p
\n
"
,
hMenu
,
pidl
);
FIXME
(
"
%p
%p
\n
"
,
hMenu
,
pidl
);
return
0
;
return
0
;
}
}
...
@@ -482,7 +482,7 @@ int WINAPI FileMenu_AppendFilesForPidl(
...
@@ -482,7 +482,7 @@ int WINAPI FileMenu_AppendFilesForPidl(
if
(
bAddSeperator
)
if
(
bAddSeperator
)
FileMenu_AppendItemA
(
hmenu
,
FM_SEPARATOR
,
0
,
0
,
0
,
FM_DEFAULT_HEIGHT
);
FileMenu_AppendItemA
(
hmenu
,
FM_SEPARATOR
,
0
,
0
,
0
,
FM_DEFAULT_HEIGHT
);
TRACE
(
"
0x%08x
%p 0x%08x
\n
"
,
hmenu
,
pidl
,
bAddSeperator
);
TRACE
(
"
%p
%p 0x%08x
\n
"
,
hmenu
,
pidl
,
bAddSeperator
);
return
0
;
return
0
;
}
}
...
@@ -501,7 +501,7 @@ int WINAPI FileMenu_AddFilesForPidl (
...
@@ -501,7 +501,7 @@ int WINAPI FileMenu_AddFilesForPidl (
UINT
uEnumFlags
,
UINT
uEnumFlags
,
LPFNFMCALLBACK
lpfnCallback
)
LPFNFMCALLBACK
lpfnCallback
)
{
{
TRACE
(
"
0x%08x
0x%08x 0x%08x %p 0x%08x 0x%08x %p
\n
"
,
TRACE
(
"
%p
0x%08x 0x%08x %p 0x%08x 0x%08x %p
\n
"
,
hmenu
,
uReserved
,
uID
,
pidl
,
uFlags
,
uEnumFlags
,
lpfnCallback
);
hmenu
,
uReserved
,
uID
,
pidl
,
uFlags
,
uEnumFlags
,
lpfnCallback
);
return
FileMenu_InsertUsingPidl
(
hmenu
,
uID
,
pidl
,
uFlags
,
uEnumFlags
,
lpfnCallback
);
return
FileMenu_InsertUsingPidl
(
hmenu
,
uID
,
pidl
,
uFlags
,
uEnumFlags
,
lpfnCallback
);
...
@@ -520,7 +520,7 @@ BOOL WINAPI FileMenu_TrackPopupMenuEx (
...
@@ -520,7 +520,7 @@ BOOL WINAPI FileMenu_TrackPopupMenuEx (
HWND
hWnd
,
HWND
hWnd
,
LPTPMPARAMS
lptpm
)
LPTPMPARAMS
lptpm
)
{
{
TRACE
(
"
0x%08x 0x%08x 0x%x 0x%x 0x%08x
%p
\n
"
,
TRACE
(
"
%p 0x%08x 0x%x 0x%x %p
%p
\n
"
,
hMenu
,
uFlags
,
x
,
y
,
hWnd
,
lptpm
);
hMenu
,
uFlags
,
x
,
y
,
hWnd
,
lptpm
);
return
TrackPopupMenuEx
(
hMenu
,
uFlags
,
x
,
y
,
hWnd
,
lptpm
);
return
TrackPopupMenuEx
(
hMenu
,
uFlags
,
x
,
y
,
hWnd
,
lptpm
);
}
}
...
@@ -555,7 +555,7 @@ LRESULT WINAPI FileMenu_MeasureItem(
...
@@ -555,7 +555,7 @@ LRESULT WINAPI FileMenu_MeasureItem(
SIZE
size
;
SIZE
size
;
LPFMINFO
menuinfo
;
LPFMINFO
menuinfo
;
TRACE
(
"
0x%08x
%p %s
\n
"
,
hWnd
,
lpmis
,
pMyItem
->
szItemText
);
TRACE
(
"
%p
%p %s
\n
"
,
hWnd
,
lpmis
,
pMyItem
->
szItemText
);
GetTextExtentPoint32A
(
hdc
,
pMyItem
->
szItemText
,
pMyItem
->
cchItemText
,
&
size
);
GetTextExtentPoint32A
(
hdc
,
pMyItem
->
szItemText
,
pMyItem
->
cchItemText
,
&
size
);
...
@@ -585,7 +585,7 @@ LRESULT WINAPI FileMenu_DrawItem(
...
@@ -585,7 +585,7 @@ LRESULT WINAPI FileMenu_DrawItem(
RECT
TextRect
,
BorderRect
;
RECT
TextRect
,
BorderRect
;
LPFMINFO
menuinfo
;
LPFMINFO
menuinfo
;
TRACE
(
"
0x%08x
%p %s
\n
"
,
hWnd
,
lpdis
,
pMyItem
->
szItemText
);
TRACE
(
"
%p
%p %s
\n
"
,
hWnd
,
lpdis
,
pMyItem
->
szItemText
);
if
(
lpdis
->
itemState
&
ODS_SELECTED
)
if
(
lpdis
->
itemState
&
ODS_SELECTED
)
{
{
...
@@ -650,7 +650,7 @@ LRESULT WINAPI FileMenu_HandleMenuChar(
...
@@ -650,7 +650,7 @@ LRESULT WINAPI FileMenu_HandleMenuChar(
HMENU
hMenu
,
HMENU
hMenu
,
WPARAM
wParam
)
WPARAM
wParam
)
{
{
FIXME
(
"
0x%08x
0x%08x
\n
"
,
hMenu
,
wParam
);
FIXME
(
"
%p
0x%08x
\n
"
,
hMenu
,
wParam
);
return
0
;
return
0
;
}
}
...
@@ -667,7 +667,7 @@ BOOL WINAPI FileMenu_DeleteAllItems (HMENU hmenu)
...
@@ -667,7 +667,7 @@ BOOL WINAPI FileMenu_DeleteAllItems (HMENU hmenu)
int
i
;
int
i
;
TRACE
(
"
0x%08x
\n
"
,
hmenu
);
TRACE
(
"
%p
\n
"
,
hmenu
);
ZeroMemory
(
&
mii
,
sizeof
(
MENUITEMINFOA
));
ZeroMemory
(
&
mii
,
sizeof
(
MENUITEMINFOA
));
mii
.
cbSize
=
sizeof
(
MENUITEMINFOA
);
mii
.
cbSize
=
sizeof
(
MENUITEMINFOA
);
...
@@ -700,7 +700,7 @@ BOOL WINAPI FileMenu_DeleteItemByCmd (HMENU hMenu, UINT uID)
...
@@ -700,7 +700,7 @@ BOOL WINAPI FileMenu_DeleteItemByCmd (HMENU hMenu, UINT uID)
{
{
MENUITEMINFOA
mii
;
MENUITEMINFOA
mii
;
TRACE
(
"
0x%08x
0x%08x
\n
"
,
hMenu
,
uID
);
TRACE
(
"
%p
0x%08x
\n
"
,
hMenu
,
uID
);
ZeroMemory
(
&
mii
,
sizeof
(
MENUITEMINFOA
));
ZeroMemory
(
&
mii
,
sizeof
(
MENUITEMINFOA
));
mii
.
cbSize
=
sizeof
(
MENUITEMINFOA
);
mii
.
cbSize
=
sizeof
(
MENUITEMINFOA
);
...
@@ -723,7 +723,7 @@ BOOL WINAPI FileMenu_DeleteItemByIndex ( HMENU hMenu, UINT uPos)
...
@@ -723,7 +723,7 @@ BOOL WINAPI FileMenu_DeleteItemByIndex ( HMENU hMenu, UINT uPos)
{
{
MENUITEMINFOA
mii
;
MENUITEMINFOA
mii
;
TRACE
(
"
0x%08x
0x%08x
\n
"
,
hMenu
,
uPos
);
TRACE
(
"
%p
0x%08x
\n
"
,
hMenu
,
uPos
);
ZeroMemory
(
&
mii
,
sizeof
(
MENUITEMINFOA
));
ZeroMemory
(
&
mii
,
sizeof
(
MENUITEMINFOA
));
mii
.
cbSize
=
sizeof
(
MENUITEMINFOA
);
mii
.
cbSize
=
sizeof
(
MENUITEMINFOA
);
...
@@ -746,7 +746,7 @@ BOOL WINAPI FileMenu_DeleteItemByFirstID(
...
@@ -746,7 +746,7 @@ BOOL WINAPI FileMenu_DeleteItemByFirstID(
HMENU
hMenu
,
HMENU
hMenu
,
UINT
uID
)
UINT
uID
)
{
{
TRACE
(
"
0x%08x
0x%08x
\n
"
,
hMenu
,
uID
);
TRACE
(
"
%p
0x%08x
\n
"
,
hMenu
,
uID
);
return
0
;
return
0
;
}
}
...
@@ -755,7 +755,7 @@ BOOL WINAPI FileMenu_DeleteItemByFirstID(
...
@@ -755,7 +755,7 @@ BOOL WINAPI FileMenu_DeleteItemByFirstID(
*/
*/
BOOL
WINAPI
FileMenu_DeleteSeparator
(
HMENU
hMenu
)
BOOL
WINAPI
FileMenu_DeleteSeparator
(
HMENU
hMenu
)
{
{
TRACE
(
"
0x%08x
\n
"
,
hMenu
);
TRACE
(
"
%p
\n
"
,
hMenu
);
return
0
;
return
0
;
}
}
...
@@ -767,7 +767,7 @@ BOOL WINAPI FileMenu_EnableItemByCmd(
...
@@ -767,7 +767,7 @@ BOOL WINAPI FileMenu_EnableItemByCmd(
UINT
uID
,
UINT
uID
,
BOOL
bEnable
)
BOOL
bEnable
)
{
{
TRACE
(
"
0x%08x
0x%08x 0x%08x
\n
"
,
hMenu
,
uID
,
bEnable
);
TRACE
(
"
%p
0x%08x 0x%08x
\n
"
,
hMenu
,
uID
,
bEnable
);
return
0
;
return
0
;
}
}
...
@@ -780,7 +780,7 @@ BOOL WINAPI FileMenu_EnableItemByCmd(
...
@@ -780,7 +780,7 @@ BOOL WINAPI FileMenu_EnableItemByCmd(
DWORD
WINAPI
FileMenu_GetItemExtent
(
HMENU
hMenu
,
UINT
uPos
)
DWORD
WINAPI
FileMenu_GetItemExtent
(
HMENU
hMenu
,
UINT
uPos
)
{
RECT
rect
;
{
RECT
rect
;
FIXME
(
"
0x%08x
0x%08x
\n
"
,
hMenu
,
uPos
);
FIXME
(
"
%p
0x%08x
\n
"
,
hMenu
,
uPos
);
if
(
GetMenuItemRect
(
0
,
hMenu
,
uPos
,
&
rect
))
if
(
GetMenuItemRect
(
0
,
hMenu
,
uPos
,
&
rect
))
{
FIXME
(
"0x%04x 0x%04x 0x%04x 0x%04x
\n
"
,
{
FIXME
(
"0x%04x 0x%04x 0x%04x 0x%04x
\n
"
,
...
@@ -814,7 +814,7 @@ void WINAPI FileMenu_AbortInitMenu (void)
...
@@ -814,7 +814,7 @@ void WINAPI FileMenu_AbortInitMenu (void)
* or NULL at failure.
* or NULL at failure.
*/
*/
LPVOID
WINAPI
SHFind_InitMenuPopup
(
HMENU
hMenu
,
HWND
hWndParent
,
DWORD
w
,
DWORD
x
)
LPVOID
WINAPI
SHFind_InitMenuPopup
(
HMENU
hMenu
,
HWND
hWndParent
,
DWORD
w
,
DWORD
x
)
{
FIXME
(
"hmenu=
0x%08x hwnd=0x%08x
0x%08lx 0x%08lx stub
\n
"
,
{
FIXME
(
"hmenu=
%p hwnd=%p
0x%08lx 0x%08lx stub
\n
"
,
hMenu
,
hWndParent
,
w
,
x
);
hMenu
,
hWndParent
,
w
,
x
);
return
NULL
;
/* this is supposed to be a pointer */
return
NULL
;
/* this is supposed to be a pointer */
}
}
...
@@ -853,7 +853,7 @@ HRESULT WINAPI Shell_MergeMenus (HMENU hmDst, HMENU hmSrc, UINT uInsert, UINT uI
...
@@ -853,7 +853,7 @@ HRESULT WINAPI Shell_MergeMenus (HMENU hmDst, HMENU hmSrc, UINT uInsert, UINT uI
char
szName
[
256
];
char
szName
[
256
];
UINT
uTemp
,
uIDMax
=
uIDAdjust
;
UINT
uTemp
,
uIDMax
=
uIDAdjust
;
TRACE
(
"hmenu1=
0x%04x hmenu2=0x%04x
0x%04x 0x%04x 0x%04x 0x%04lx
\n
"
,
TRACE
(
"hmenu1=
%p hmenu2=%p
0x%04x 0x%04x 0x%04x 0x%04lx
\n
"
,
hmDst
,
hmSrc
,
uInsert
,
uIDAdjust
,
uIDAdjustMax
,
uFlags
);
hmDst
,
hmSrc
,
uInsert
,
uIDAdjust
,
uIDAdjustMax
,
uFlags
);
if
(
!
hmDst
||
!
hmSrc
)
if
(
!
hmDst
||
!
hmSrc
)
...
@@ -986,4 +986,3 @@ HRESULT WINAPI Shell_MergeMenus (HMENU hmDst, HMENU hmSrc, UINT uInsert, UINT uI
...
@@ -986,4 +986,3 @@ HRESULT WINAPI Shell_MergeMenus (HMENU hmDst, HMENU hmSrc, UINT uInsert, UINT uI
}
}
return
(
uIDMax
);
return
(
uIDMax
);
}
}
dlls/shell32/shlview.c
View file @
991fd85d
...
@@ -705,14 +705,14 @@ static HMENU ShellView_BuildFileMenu(IShellViewImpl * This)
...
@@ -705,14 +705,14 @@ static HMENU ShellView_BuildFileMenu(IShellViewImpl * This)
InsertMenuItemA
(
hSubMenu
,
(
UINT
)
-
1
,
TRUE
,
&
mii
);
InsertMenuItemA
(
hSubMenu
,
(
UINT
)
-
1
,
TRUE
,
&
mii
);
}
}
}
}
TRACE
(
"-- return (menu=
0x%x
)
\n
"
,
hSubMenu
);
TRACE
(
"-- return (menu=
%p
)
\n
"
,
hSubMenu
);
return
hSubMenu
;
return
hSubMenu
;
}
}
/**********************************************************
/**********************************************************
* ShellView_MergeFileMenu()
* ShellView_MergeFileMenu()
*/
*/
static
void
ShellView_MergeFileMenu
(
IShellViewImpl
*
This
,
HMENU
hSubMenu
)
static
void
ShellView_MergeFileMenu
(
IShellViewImpl
*
This
,
HMENU
hSubMenu
)
{
TRACE
(
"(%p)->(submenu=
0x%08x
) stub
\n
"
,
This
,
hSubMenu
);
{
TRACE
(
"(%p)->(submenu=
%p
) stub
\n
"
,
This
,
hSubMenu
);
if
(
hSubMenu
)
if
(
hSubMenu
)
{
/*insert This item at the beginning of the menu */
{
/*insert This item at the beginning of the menu */
...
@@ -730,7 +730,7 @@ static void ShellView_MergeFileMenu(IShellViewImpl * This, HMENU hSubMenu)
...
@@ -730,7 +730,7 @@ static void ShellView_MergeFileMenu(IShellViewImpl * This, HMENU hSubMenu)
static
void
ShellView_MergeViewMenu
(
IShellViewImpl
*
This
,
HMENU
hSubMenu
)
static
void
ShellView_MergeViewMenu
(
IShellViewImpl
*
This
,
HMENU
hSubMenu
)
{
MENUITEMINFOA
mii
;
{
MENUITEMINFOA
mii
;
TRACE
(
"(%p)->(submenu=
0x%08x
)
\n
"
,
This
,
hSubMenu
);
TRACE
(
"(%p)->(submenu=
%p
)
\n
"
,
This
,
hSubMenu
);
if
(
hSubMenu
)
if
(
hSubMenu
)
{
/*add a separator at the correct position in the menu*/
{
/*add a separator at the correct position in the menu*/
...
@@ -1057,7 +1057,7 @@ static LRESULT ShellView_OnKillFocus(IShellViewImpl * This)
...
@@ -1057,7 +1057,7 @@ static LRESULT ShellView_OnKillFocus(IShellViewImpl * This)
*/
*/
static
LRESULT
ShellView_OnCommand
(
IShellViewImpl
*
This
,
DWORD
dwCmdID
,
DWORD
dwCmd
,
HWND
hwndCmd
)
static
LRESULT
ShellView_OnCommand
(
IShellViewImpl
*
This
,
DWORD
dwCmdID
,
DWORD
dwCmd
,
HWND
hwndCmd
)
{
{
TRACE
(
"(%p)->(0x%08lx 0x%08lx
0x%08x
) stub
\n
"
,
This
,
dwCmdID
,
dwCmd
,
hwndCmd
);
TRACE
(
"(%p)->(0x%08lx 0x%08lx
%p
) stub
\n
"
,
This
,
dwCmdID
,
dwCmd
,
hwndCmd
);
switch
(
dwCmdID
)
switch
(
dwCmdID
)
{
{
...
@@ -1399,7 +1399,7 @@ static LRESULT CALLBACK ShellView_WndProc(HWND hWnd, UINT uMessage, WPARAM wPara
...
@@ -1399,7 +1399,7 @@ static LRESULT CALLBACK ShellView_WndProc(HWND hWnd, UINT uMessage, WPARAM wPara
IShellViewImpl
*
pThis
=
(
IShellViewImpl
*
)
GetWindowLongA
(
hWnd
,
GWL_USERDATA
);
IShellViewImpl
*
pThis
=
(
IShellViewImpl
*
)
GetWindowLongA
(
hWnd
,
GWL_USERDATA
);
LPCREATESTRUCTA
lpcs
;
LPCREATESTRUCTA
lpcs
;
TRACE
(
"(hwnd=%
x
msg=%x wparm=%x lparm=%lx)
\n
"
,
hWnd
,
uMessage
,
wParam
,
lParam
);
TRACE
(
"(hwnd=%
p
msg=%x wparm=%x lparm=%lx)
\n
"
,
hWnd
,
uMessage
,
wParam
,
lParam
);
switch
(
uMessage
)
switch
(
uMessage
)
{
{
...
...
dlls/shell32/shv_bg_cmenu.c
View file @
991fd85d
...
@@ -151,7 +151,7 @@ static HRESULT WINAPI ISVBgCm_fnQueryContextMenu(
...
@@ -151,7 +151,7 @@ static HRESULT WINAPI ISVBgCm_fnQueryContextMenu(
ICOM_THIS
(
BgCmImpl
,
iface
);
ICOM_THIS
(
BgCmImpl
,
iface
);
TRACE
(
"(%p)->(hmenu=%
x
indexmenu=%x cmdfirst=%x cmdlast=%x flags=%x )
\n
"
,
TRACE
(
"(%p)->(hmenu=%
p
indexmenu=%x cmdfirst=%x cmdlast=%x flags=%x )
\n
"
,
This
,
hMenu
,
indexMenu
,
idCmdFirst
,
idCmdLast
,
uFlags
);
This
,
hMenu
,
indexMenu
,
idCmdFirst
,
idCmdLast
,
uFlags
);
...
@@ -320,7 +320,7 @@ static HRESULT WINAPI ISVBgCm_fnInvokeCommand(
...
@@ -320,7 +320,7 @@ static HRESULT WINAPI ISVBgCm_fnInvokeCommand(
LPSHELLVIEW
lpSV
;
LPSHELLVIEW
lpSV
;
HWND
hWndSV
;
HWND
hWndSV
;
TRACE
(
"(%p)->(invcom=%p verb=%p wnd=%
x
)
\n
"
,
This
,
lpcmi
,
lpcmi
->
lpVerb
,
lpcmi
->
hwnd
);
TRACE
(
"(%p)->(invcom=%p verb=%p wnd=%
p
)
\n
"
,
This
,
lpcmi
,
lpcmi
->
lpVerb
,
lpcmi
->
hwnd
);
/* get the active IShellView */
/* get the active IShellView */
if
((
lpSB
=
(
LPSHELLBROWSER
)
SendMessageA
(
lpcmi
->
hwnd
,
CWM_GETISHELLBROWSER
,
0
,
0
)))
if
((
lpSB
=
(
LPSHELLBROWSER
)
SendMessageA
(
lpcmi
->
hwnd
,
CWM_GETISHELLBROWSER
,
0
,
0
)))
...
...
dlls/shell32/shv_item_cmenu.c
View file @
991fd85d
...
@@ -219,7 +219,7 @@ static HRESULT WINAPI ISvItemCm_fnQueryContextMenu(
...
@@ -219,7 +219,7 @@ static HRESULT WINAPI ISvItemCm_fnQueryContextMenu(
{
{
ICOM_THIS
(
ItemCmImpl
,
iface
);
ICOM_THIS
(
ItemCmImpl
,
iface
);
TRACE
(
"(%p)->(hmenu=%
x
indexmenu=%x cmdfirst=%x cmdlast=%x flags=%x )
\n
"
,
This
,
hmenu
,
indexMenu
,
idCmdFirst
,
idCmdLast
,
uFlags
);
TRACE
(
"(%p)->(hmenu=%
p
indexmenu=%x cmdfirst=%x cmdlast=%x flags=%x )
\n
"
,
This
,
hmenu
,
indexMenu
,
idCmdFirst
,
idCmdLast
,
uFlags
);
if
(
!
(
CMF_DEFAULTONLY
&
uFlags
))
if
(
!
(
CMF_DEFAULTONLY
&
uFlags
))
{
{
...
@@ -312,7 +312,7 @@ static void DoRename(
...
@@ -312,7 +312,7 @@ static void DoRename(
LPSHELLBROWSER
lpSB
;
LPSHELLBROWSER
lpSB
;
LPSHELLVIEW
lpSV
;
LPSHELLVIEW
lpSV
;
TRACE
(
"(%p)->(wnd=%
x
)
\n
"
,
This
,
hwnd
);
TRACE
(
"(%p)->(wnd=%
p
)
\n
"
,
This
,
hwnd
);
/* get the active IShellView */
/* get the active IShellView */
if
((
lpSB
=
(
LPSHELLBROWSER
)
SendMessageA
(
hwnd
,
CWM_GETISHELLBROWSER
,
0
,
0
)))
if
((
lpSB
=
(
LPSHELLBROWSER
)
SendMessageA
(
hwnd
,
CWM_GETISHELLBROWSER
,
0
,
0
)))
...
@@ -361,7 +361,7 @@ static BOOL DoCopyOrCut(
...
@@ -361,7 +361,7 @@ static BOOL DoCopyOrCut(
LPSHELLVIEW
lpSV
;
LPSHELLVIEW
lpSV
;
LPDATAOBJECT
lpDo
;
LPDATAOBJECT
lpDo
;
TRACE
(
"(%p)->(wnd=
0x%04x
,bCut=0x%08x)
\n
"
,
This
,
hwnd
,
bCut
);
TRACE
(
"(%p)->(wnd=
%p
,bCut=0x%08x)
\n
"
,
This
,
hwnd
,
bCut
);
if
(
GetShellOle
())
if
(
GetShellOle
())
{
{
...
@@ -429,7 +429,7 @@ static HRESULT WINAPI ISvItemCm_fnInvokeCommand(
...
@@ -429,7 +429,7 @@ static HRESULT WINAPI ISvItemCm_fnInvokeCommand(
{
{
ICOM_THIS
(
ItemCmImpl
,
iface
);
ICOM_THIS
(
ItemCmImpl
,
iface
);
TRACE
(
"(%p)->(invcom=%p verb=%p wnd=%
x
)
\n
"
,
This
,
lpcmi
,
lpcmi
->
lpVerb
,
lpcmi
->
hwnd
);
TRACE
(
"(%p)->(invcom=%p verb=%p wnd=%
p
)
\n
"
,
This
,
lpcmi
,
lpcmi
->
lpVerb
,
lpcmi
->
hwnd
);
if
(
LOWORD
(
lpcmi
->
lpVerb
)
>
FCIDM_SHVIEWLAST
)
return
E_INVALIDARG
;
if
(
LOWORD
(
lpcmi
->
lpVerb
)
>
FCIDM_SHVIEWLAST
)
return
E_INVALIDARG
;
...
...
dlls/shell32/systray.c
View file @
991fd85d
...
@@ -83,7 +83,7 @@ static LRESULT CALLBACK SYSTRAY_WndProc(HWND hWnd, UINT message, WPARAM wParam,
...
@@ -83,7 +83,7 @@ static LRESULT CALLBACK SYSTRAY_WndProc(HWND hWnd, UINT message, WPARAM wParam,
GetClientRect
(
hWnd
,
&
rc
);
GetClientRect
(
hWnd
,
&
rc
);
if
(
!
DrawIconEx
(
hdc
,
rc
.
left
+
ICON_BORDER
,
rc
.
top
+
ICON_BORDER
,
ptrayItem
->
notifyIcon
.
hIcon
,
if
(
!
DrawIconEx
(
hdc
,
rc
.
left
+
ICON_BORDER
,
rc
.
top
+
ICON_BORDER
,
ptrayItem
->
notifyIcon
.
hIcon
,
ICON_SIZE
,
ICON_SIZE
,
0
,
0
,
DI_DEFAULTSIZE
|
DI_NORMAL
))
{
ICON_SIZE
,
ICON_SIZE
,
0
,
0
,
DI_DEFAULTSIZE
|
DI_NORMAL
))
{
ERR
(
"Paint(SystrayWindow
0x%08x
) failed -> removing SystrayItem %p
\n
"
,
hWnd
,
ptrayItem
);
ERR
(
"Paint(SystrayWindow
%p
) failed -> removing SystrayItem %p
\n
"
,
hWnd
,
ptrayItem
);
SYSTRAY_Delete
(
&
ptrayItem
->
notifyIcon
);
SYSTRAY_Delete
(
&
ptrayItem
->
notifyIcon
);
}
}
}
}
...
@@ -134,7 +134,7 @@ static LRESULT CALLBACK SYSTRAY_WndProc(HWND hWnd, UINT message, WPARAM wParam,
...
@@ -134,7 +134,7 @@ static LRESULT CALLBACK SYSTRAY_WndProc(HWND hWnd, UINT message, WPARAM wParam,
if
(
ptrayItem
->
notifyIcon
.
hWnd
&&
ptrayItem
->
notifyIcon
.
uCallbackMessage
)
{
if
(
ptrayItem
->
notifyIcon
.
hWnd
&&
ptrayItem
->
notifyIcon
.
uCallbackMessage
)
{
if
(
!
PostMessageA
(
ptrayItem
->
notifyIcon
.
hWnd
,
ptrayItem
->
notifyIcon
.
uCallbackMessage
,
if
(
!
PostMessageA
(
ptrayItem
->
notifyIcon
.
hWnd
,
ptrayItem
->
notifyIcon
.
uCallbackMessage
,
(
WPARAM
)
ptrayItem
->
notifyIcon
.
uID
,
(
LPARAM
)
message
))
{
(
WPARAM
)
ptrayItem
->
notifyIcon
.
uID
,
(
LPARAM
)
message
))
{
ERR
(
"PostMessage(SystrayWindow
0x%08x
) failed -> removing SystrayItem %p
\n
"
,
hWnd
,
ptrayItem
);
ERR
(
"PostMessage(SystrayWindow
%p
) failed -> removing SystrayItem %p
\n
"
,
hWnd
,
ptrayItem
);
SYSTRAY_Delete
(
&
ptrayItem
->
notifyIcon
);
SYSTRAY_Delete
(
&
ptrayItem
->
notifyIcon
);
}
}
}
}
...
@@ -292,7 +292,7 @@ static BOOL SYSTRAY_Add(PNOTIFYICONDATAA pnid)
...
@@ -292,7 +292,7 @@ static BOOL SYSTRAY_Add(PNOTIFYICONDATAA pnid)
SYSTRAY_ItemSetMessage
(
*
ptrayItem
,
(
pnid
->
uFlags
&
NIF_MESSAGE
)
?
pnid
->
uCallbackMessage
:
0
);
SYSTRAY_ItemSetMessage
(
*
ptrayItem
,
(
pnid
->
uFlags
&
NIF_MESSAGE
)
?
pnid
->
uCallbackMessage
:
0
);
SYSTRAY_ItemSetTip
(
*
ptrayItem
,
(
pnid
->
uFlags
&
NIF_TIP
)
?
pnid
->
szTip
:
""
,
FALSE
);
SYSTRAY_ItemSetTip
(
*
ptrayItem
,
(
pnid
->
uFlags
&
NIF_TIP
)
?
pnid
->
szTip
:
""
,
FALSE
);
TRACE
(
"%p:
0x%08x
%s
\n
"
,
(
*
ptrayItem
),
(
*
ptrayItem
)
->
notifyIcon
.
hWnd
,
TRACE
(
"%p:
%p
%s
\n
"
,
(
*
ptrayItem
),
(
*
ptrayItem
)
->
notifyIcon
.
hWnd
,
(
*
ptrayItem
)
->
notifyIcon
.
szTip
);
(
*
ptrayItem
)
->
notifyIcon
.
szTip
);
return
TRUE
;
return
TRUE
;
}
}
...
@@ -311,7 +311,7 @@ static BOOL SYSTRAY_Modify(PNOTIFYICONDATAA pnid)
...
@@ -311,7 +311,7 @@ static BOOL SYSTRAY_Modify(PNOTIFYICONDATAA pnid)
if
(
pnid
->
uFlags
&
NIF_TIP
)
if
(
pnid
->
uFlags
&
NIF_TIP
)
SYSTRAY_ItemSetTip
(
ptrayItem
,
pnid
->
szTip
,
TRUE
);
SYSTRAY_ItemSetTip
(
ptrayItem
,
pnid
->
szTip
,
TRUE
);
TRACE
(
"%p:
0x%08x
%s
\n
"
,
ptrayItem
,
ptrayItem
->
notifyIcon
.
hWnd
,
ptrayItem
->
notifyIcon
.
szTip
);
TRACE
(
"%p:
%p
%s
\n
"
,
ptrayItem
,
ptrayItem
->
notifyIcon
.
hWnd
,
ptrayItem
->
notifyIcon
.
szTip
);
return
TRUE
;
return
TRUE
;
}
}
ptrayItem
=
ptrayItem
->
nextTrayItem
;
ptrayItem
=
ptrayItem
->
nextTrayItem
;
...
@@ -327,7 +327,7 @@ static BOOL SYSTRAY_Delete(PNOTIFYICONDATAA pnid)
...
@@ -327,7 +327,7 @@ static BOOL SYSTRAY_Delete(PNOTIFYICONDATAA pnid)
while
(
*
ptrayItem
)
{
while
(
*
ptrayItem
)
{
if
(
SYSTRAY_ItemIsEqual
(
pnid
,
&
(
*
ptrayItem
)
->
notifyIcon
))
{
if
(
SYSTRAY_ItemIsEqual
(
pnid
,
&
(
*
ptrayItem
)
->
notifyIcon
))
{
SystrayItem
*
next
=
(
*
ptrayItem
)
->
nextTrayItem
;
SystrayItem
*
next
=
(
*
ptrayItem
)
->
nextTrayItem
;
TRACE
(
"%p:
0x%08x
%s
\n
"
,
*
ptrayItem
,
(
*
ptrayItem
)
->
notifyIcon
.
hWnd
,
(
*
ptrayItem
)
->
notifyIcon
.
szTip
);
TRACE
(
"%p:
%p
%s
\n
"
,
*
ptrayItem
,
(
*
ptrayItem
)
->
notifyIcon
.
hWnd
,
(
*
ptrayItem
)
->
notifyIcon
.
szTip
);
SYSTRAY_ItemTerm
(
*
ptrayItem
);
SYSTRAY_ItemTerm
(
*
ptrayItem
);
free
(
*
ptrayItem
);
free
(
*
ptrayItem
);
...
@@ -356,7 +356,7 @@ BOOL SYSTRAY_Init(void)
...
@@ -356,7 +356,7 @@ BOOL SYSTRAY_Init(void)
BOOL
WINAPI
Shell_NotifyIconA
(
DWORD
dwMessage
,
PNOTIFYICONDATAA
pnid
)
BOOL
WINAPI
Shell_NotifyIconA
(
DWORD
dwMessage
,
PNOTIFYICONDATAA
pnid
)
{
{
BOOL
flag
=
FALSE
;
BOOL
flag
=
FALSE
;
TRACE
(
"enter %
d
%d %ld
\n
"
,
pnid
->
hWnd
,
pnid
->
uID
,
dwMessage
);
TRACE
(
"enter %
p
%d %ld
\n
"
,
pnid
->
hWnd
,
pnid
->
uID
,
dwMessage
);
switch
(
dwMessage
)
{
switch
(
dwMessage
)
{
case
NIM_ADD
:
case
NIM_ADD
:
flag
=
SYSTRAY_Add
(
pnid
);
flag
=
SYSTRAY_Add
(
pnid
);
...
@@ -368,7 +368,7 @@ BOOL WINAPI Shell_NotifyIconA(DWORD dwMessage, PNOTIFYICONDATAA pnid )
...
@@ -368,7 +368,7 @@ BOOL WINAPI Shell_NotifyIconA(DWORD dwMessage, PNOTIFYICONDATAA pnid )
flag
=
SYSTRAY_Delete
(
pnid
);
flag
=
SYSTRAY_Delete
(
pnid
);
break
;
break
;
}
}
TRACE
(
"leave %
d
%d %ld=%d
\n
"
,
pnid
->
hWnd
,
pnid
->
uID
,
dwMessage
,
flag
);
TRACE
(
"leave %
p
%d %ld=%d
\n
"
,
pnid
->
hWnd
,
pnid
->
uID
,
dwMessage
,
flag
);
return
flag
;
return
flag
;
}
}
...
...
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