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
9764b6fe
Commit
9764b6fe
authored
Oct 18, 2020
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskmgr: Shell32 is imported, no need to load it again.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
27431b0f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
run.c
programs/taskmgr/run.c
+1
-6
No files found.
programs/taskmgr/run.c
View file @
9764b6fe
...
...
@@ -48,13 +48,10 @@ UINT uFlags);
void
TaskManager_OnFileNew
(
void
)
{
HMODULE
hShell32
;
RUNFILEDLG
RunFileDlg
;
OSVERSIONINFOW
versionInfo
;
static
const
WCHAR
wszShell32
[]
=
{
'S'
,
'H'
,
'E'
,
'L'
,
'L'
,
'3'
,
'2'
,
'.'
,
'D'
,
'L'
,
'L'
,
0
};
hShell32
=
LoadLibraryW
(
wszShell32
);
RunFileDlg
=
(
void
*
)
GetProcAddress
(
hShell32
,
(
LPCSTR
)
61
);
RunFileDlg
=
(
void
*
)
GetProcAddress
(
GetModuleHandleW
(
L"shell32.dll"
),
(
LPCSTR
)
61
);
/* Show "Run..." dialog */
if
(
RunFileDlg
)
...
...
@@ -76,6 +73,4 @@ void TaskManager_OnFileNew(void)
RunFileDlg
(
hMainWnd
,
hIcon
,
NULL
,
szTitle
,
NULL
,
RFF_CALCDIRECTORY
);
}
}
FreeLibrary
(
hShell32
);
}
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