Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johnny Cai
wine
Commits
f59bebe5
Commit
f59bebe5
authored
22 years ago
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
22 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Make winedump compilable by MSVC.
parent
a6affaa0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tools/winedump/main.c
+3
-1
3 additions, 1 deletion
tools/winedump/main.c
tools/winedump/misc.c
+1
-1
1 addition, 1 deletion
tools/winedump/misc.c
tools/winedump/pe.c
+6
-2
6 additions, 2 deletions
tools/winedump/pe.c
with
10 additions
and
4 deletions
tools/winedump/main.c
+
3
−
1
View file @
f59bebe5
...
...
@@ -17,8 +17,10 @@
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include
"winedump.h"
#include
"config.h"
#include
"winedump.h"
_globals
globals
;
/* All global variables */
...
...
This diff is collapsed.
Click to expand it.
tools/winedump/misc.c
+
1
−
1
View file @
f59bebe5
...
...
@@ -224,5 +224,5 @@ void fatal (const char *message)
perror
(
message
);
else
puts
(
message
);
do_usage
(
);
exit
(
1
);
}
This diff is collapsed.
Click to expand it.
tools/winedump/pe.c
+
6
−
2
View file @
f59bebe5
...
...
@@ -42,6 +42,10 @@
#include
"winedump.h"
#include
"pe.h"
#ifndef O_BINARY
# define O_BINARY 0
#endif
static
void
*
base
;
static
unsigned
long
total_len
;
static
IMAGE_NT_HEADERS
*
nt_headers
;
...
...
@@ -649,7 +653,7 @@ static const char *get_resource_type( int id )
static
void
dump_data
(
const
unsigned
char
*
ptr
,
unsigned
int
size
,
const
char
*
prefix
)
{
int
i
,
j
;
unsigned
int
i
,
j
;
printf
(
"%s"
,
prefix
);
for
(
i
=
0
;
i
<
size
;
i
++
)
...
...
@@ -822,7 +826,7 @@ int pe_analysis(const char* name, void (*fn)(void), enum FileSig wanted_sig)
setbuf
(
stdout
,
NULL
);
fd
=
open
(
name
,
O_RDONLY
);
fd
=
open
(
name
,
O_RDONLY
|
O_BINARY
);
if
(
fd
==
-
1
)
fatal
(
"Can't open file"
);
if
(
fstat
(
fd
,
&
s
)
<
0
)
fatal
(
"Can't get size"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment