Staging
v0.5.1
https://github.com/python/cpython
Revision f43a86b9d784acac33a87e1e0695f2abf28047a2 authored by Thomas Heller on 16 January 2008, 19:24:20 UTC, committed by Thomas Heller on 16 January 2008, 19:24:20 UTC
  Fix a potential 'SystemError: NULL result without error'.
  NULL may be a valid return value from PyLong_AsVoidPtr.
Also move an older ctypes NEWS item in the correct category.
1 parent 2e7fde7
Raw File
Tip revision: f43a86b9d784acac33a87e1e0695f2abf28047a2 authored by Thomas Heller on 16 January 2008, 19:24:20 UTC
Backport from trunk:
Tip revision: f43a86b
WinMain.c
/* Minimal main program -- everything is loaded from the library. */

#define WIN32_LEAN_AND_MEAN
#include <windows.h>

#include "Python.h"

int WINAPI WinMain(
    HINSTANCE hInstance,      /* handle to current instance */
    HINSTANCE hPrevInstance,  /* handle to previous instance */
    LPSTR lpCmdLine,          /* pointer to command line */
    int nCmdShow              /* show state of window */
)
{
    return Py_Main(__argc, __argv);
}
back to top