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
d5f3d6f7
Commit
d5f3d6f7
authored
Apr 20, 2009
by
Christian Costa
Committed by
Alexandre Julliard
Apr 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedump: When generating preamble, use 4 spaces instead of tabs. Remove extra break.
parent
74baffb2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
17 deletions
+24
-17
output.c
tools/winedump/output.c
+24
-17
No files found.
tools/winedump/output.c
View file @
d5f3d6f7
...
...
@@ -233,35 +233,42 @@ void output_c_preamble (void)
if
(
VERBOSE
)
puts
(
"Creating a forwarding DLL"
);
fputs
(
"
\n
HMODULE hDLL=0;
\t
/* DLL to call */
\n\n
"
,
cfile
);
fputs
(
"
\n
HMODULE hDLL=0;
/* DLL to call */
\n\n
"
,
cfile
);
}
fprintf
(
cfile
,
"BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID "
"lpvReserved)
\n
{
\n
"
"
\t
TRACE(
\"
(0x%%p, %%d, %%p)
\\
n
\"
, hinstDLL, fdwReason, lpvReserved);
\n
"
"
\n\t
switch (fdwReason)
\n\t
{
\n
"
"
\t\t
case DLL_WINE_PREATTACH:
\n
"
"
\t\t\t
return FALSE; /* prefer native version */
\n
"
"
\t\t
case DLL_PROCESS_ATTACH:
\n
"
);
" TRACE(
\"
(0x%%p, %%d, %%p)
\\
n
\"
, hinstDLL, fdwReason, lpvReserved);
\n\n
"
" switch (fdwReason)
\n
"
" {
\n
"
" case DLL_WINE_PREATTACH:
\n
"
" return FALSE; /* prefer native version */
\n
"
" case DLL_PROCESS_ATTACH:
\n
"
);
if
(
globals
.
forward_dll
)
fprintf
(
cfile
,
"
\t\t\t
hDLL = LoadLibraryA(
\"
%s
\"
);
\n
"
"
\t\t\t
TRACE(
\"
Forwarding DLL (%s) loaded (%%p)
\\
n
\"
, hDLL);
\n
"
,
globals
.
forward_dll
,
globals
.
forward_dll
);
fprintf
(
cfile
,
" DLL = LoadLibraryA(
\"
%s
\"
);
\n
"
" TRACE(
\"
Forwarding DLL (%s) loaded (%%p)
\\
n
\"
, hDLL);
\n
"
,
globals
.
forward_dll
,
globals
.
forward_dll
);
else
fprintf
(
cfile
,
"
\t\t\t
/* FIXME: Initialisation */
\n
"
"
\t\t\t
DisableThreadLibraryCalls(hinstDLL);
\n\t\t\t
break
;
\n
"
);
fprintf
(
cfile
,
" DisableThreadLibraryCalls(hinstDLL)
;
\n
"
);
fprintf
(
cfile
,
"
\t\t\t
break;
\n\t\t
case DLL_PROCESS_DETACH:
\n
"
);
fprintf
(
cfile
,
" break;
\n
"
" case DLL_PROCESS_DETACH:
\n
"
);
if
(
globals
.
forward_dll
)
fprintf
(
cfile
,
"
\t\t\t
FreeLibrary(hDLL);
\n
"
"
\t\t\t
TRACE(
\"
Forwarding DLL (%s) freed
\\
n
\"
);
\n
"
,
globals
.
forward_dll
);
fprintf
(
cfile
,
" FreeLibrary(hDLL);
\n
"
" TRACE(
\"
Forwarding DLL (%s) freed
\\
n
\"
);
\n
"
,
globals
.
forward_dll
);
fprintf
(
cfile
,
"
\t\t\t
break;
\n\t\t
default:
\n\t\t\t
break;
\n\t
}
\n\n
"
"
\t
return TRUE;
\n
}
\n\n\n
"
);
fprintf
(
cfile
,
" break;
\n
"
" }
\n\n
"
" return TRUE;
\n
}
\n
"
);
}
...
...
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