Skip to content

Commit d53c70a

Browse files
committed
Cleanup
1 parent 44bd6ce commit d53c70a

File tree

2 files changed

+18
-20
lines changed

2 files changed

+18
-20
lines changed

ispe.c

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
/*
2-
gendef - Generate list of exported symbols from a Portable Executable.
3-
Copyright (C) 2009, 2010, 2011, 2012, 2013 mingw-w64 project
4-
5-
This program is free software: you can redistribute it and/or modify
6-
it under the terms of the GNU General Public License as published by
7-
the Free Software Foundation, either version 3 of the License, or
8-
(at your option) any later version.
9-
10-
This program is distributed in the hope that it will be useful,
11-
but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13-
GNU General Public License for more details.
14-
15-
You should have received a copy of the GNU General Public License
16-
along with this program. If not, see <http://www.gnu.org/licenses/>.
17-
*/
18-
191
/* Assumption: ispe is 32bit and OS is at minimum XP (no OS2 and POSIX emulation)
202
* This app return error if file not a PE,
213
* or if PE but not "executable" with respect to Windows bitness
@@ -37,6 +19,23 @@ BOOL WINAPI IsWow64Process(LPCTSTR, PBOOL);
3719

3820

3921
// copied from mingw-w64 gendef
22+
/*
23+
Copyright (C) 2009, 2010, 2011, 2012, 2013 mingw-w64 project
24+
25+
This program is free software: you can redistribute it and/or modify
26+
it under the terms of the GNU General Public License as published by
27+
the Free Software Foundation, either version 3 of the License, or
28+
(at your option) any later version.
29+
30+
This program is distributed in the hope that it will be useful,
31+
but WITHOUT ANY WARRANTY; without even the implied warranty of
32+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33+
GNU General Public License for more details.
34+
35+
You should have received a copy of the GNU General Public License
36+
along with this program. If not, see <http://www.gnu.org/licenses/>.
37+
*/
38+
4039
static PVOID revert; /*revert pointer*/
4140
static HMODULE kernel32handle;
4241
typedef WINBOOL (__stdcall (*redirector))(PVOID *);
@@ -65,7 +64,7 @@ void doredirect(const int redir) {
6564
atexit(undoredirect);
6665
}
6766
}
68-
67+
// end of gendef chunk
6968

7069

7170
typedef struct _PETYPE {
@@ -116,6 +115,5 @@ int main (int argc,char *argv[]) {
116115
}
117116
}
118117
undoredirect();
119-
printf ("Not Executable\n");
120118
return 1;
121119
}

minbin/ispe.exe

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)