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
f59bebe5
Commit
f59bebe5
authored
Aug 26, 2002
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Aug 26, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make winedump compilable by MSVC.
parent
a6affaa0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
main.c
tools/winedump/main.c
+3
-1
misc.c
tools/winedump/misc.c
+1
-1
pe.c
tools/winedump/pe.c
+6
-2
No files found.
tools/winedump/main.c
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 */
...
...
tools/winedump/misc.c
View file @
f59bebe5
...
...
@@ -224,5 +224,5 @@ void fatal (const char *message)
perror
(
message
);
else
puts
(
message
);
do_usage
(
);
exit
(
1
);
}
tools/winedump/pe.c
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"
);
...
...
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