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
dd4221fc
Commit
dd4221fc
authored
May 01, 2010
by
Andrew Nguyen
Committed by
Alexandre Julliard
May 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rundll32: Rename a few internal helpers for consistency.
parent
abae4154
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
rundll32.c
programs/rundll32/rundll32.c
+7
-7
No files found.
programs/rundll32/rundll32.c
View file @
dd4221fc
...
...
@@ -61,7 +61,7 @@ static FARPROC16 (WINAPI *pGetProcAddress16)(HMODULE16 hModule, LPCSTR name);
static
void
(
WINAPI
*
pRunDLL_CallEntry16
)(
FARPROC
proc
,
HWND
hwnd
,
HINSTANCE
inst
,
LPCSTR
cmdline
,
INT
cmdshow
);
static
ATOM
MyRegisterClass
(
HINSTANCE
hInstance
)
static
ATOM
register_class
(
void
)
{
WNDCLASSEX
wcex
;
...
...
@@ -71,7 +71,7 @@ static ATOM MyRegisterClass(HINSTANCE hInstance)
wcex
.
lpfnWndProc
=
DefWindowProc
;
wcex
.
cbClsExtra
=
0
;
wcex
.
cbWndExtra
=
0
;
wcex
.
hInstance
=
hInstance
;
wcex
.
hInstance
=
NULL
;
wcex
.
hIcon
=
NULL
;
wcex
.
hCursor
=
LoadCursor
(
NULL
,
IDC_ARROW
);
wcex
.
hbrBackground
=
(
HBRUSH
)(
COLOR_WINDOW
+
1
);
...
...
@@ -132,7 +132,7 @@ static void *get_entry_point32( HMODULE module, LPCWSTR entry, BOOL *unicode )
return
ret
;
}
static
LPWSTR
GetNextA
rg
(
LPWSTR
*
cmdline
)
static
LPWSTR
get_next_a
rg
(
LPWSTR
*
cmdline
)
{
LPWSTR
s
;
LPWSTR
arg
,
d
;
...
...
@@ -226,7 +226,7 @@ int WINAPI WinMain(HINSTANCE instance, HINSTANCE hOldInstance, LPSTR szCmdArgs,
szDllName
=
NULL
;
/* Initialize the rundll32 class */
MyRegisterClass
(
NULL
);
register_class
(
);
hWnd
=
CreateWindow
(
szWindowClass
,
szTitle
,
WS_OVERLAPPEDWINDOW
|
WS_VISIBLE
,
CW_USEDEFAULT
,
0
,
CW_USEDEFAULT
,
0
,
NULL
,
NULL
,
NULL
,
NULL
);
...
...
@@ -234,20 +234,20 @@ int WINAPI WinMain(HINSTANCE instance, HINSTANCE hOldInstance, LPSTR szCmdArgs,
/* Skip the rundll32.exe path */
szCmdLine
=
GetCommandLineW
();
WINE_TRACE
(
"CmdLine=%s
\n
"
,
wine_dbgstr_w
(
szCmdLine
));
szDllName
=
GetNextA
rg
(
&
szCmdLine
);
szDllName
=
get_next_a
rg
(
&
szCmdLine
);
if
(
!
szDllName
||
*
szDllName
==
0
)
goto
CLEANUP
;
HeapFree
(
GetProcessHeap
(),
0
,
szDllName
);
/* Get the dll name and API EntryPoint */
szDllName
=
GetNextA
rg
(
&
szCmdLine
);
szDllName
=
get_next_a
rg
(
&
szCmdLine
);
if
(
!
szDllName
||
*
szDllName
==
0
)
goto
CLEANUP
;
WINE_TRACE
(
"DllName=%s
\n
"
,
wine_dbgstr_w
(
szDllName
));
if
((
szEntryPoint
=
strchrW
(
szDllName
,
','
)))
*
szEntryPoint
++=
0
;
else
szEntryPoint
=
GetNextA
rg
(
&
szCmdLine
);
szEntryPoint
=
get_next_a
rg
(
&
szCmdLine
);
WINE_TRACE
(
"EntryPoint=%s
\n
"
,
wine_dbgstr_w
(
szEntryPoint
));
/* Load the library */
...
...
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