Staging
v0.5.1
https://github.com/python/cpython
Revision c498cd8bf81fc47acf2f1f702e8b3bc9bd4aed65 authored by scoder on 31 March 2018, 12:23:30 UTC, committed by Serhiy Storchaka on 31 March 2018, 12:23:30 UTC
This change generally splits the xmlparser creation code into an unsafe part with "rollback" error handling and a safe "object initialisation done" part with normal decref cleanup.
1 parent 7f48a42
Raw File
Tip revision: c498cd8bf81fc47acf2f1f702e8b3bc9bd4aed65 authored by scoder on 31 March 2018, 12:23:30 UTC
bpo-31544: Fix a reference leak to 'self' after the previous target error handling fixes. (GH-6318)
Tip revision: c498cd8
WinMain.c
/* Minimal main program -- everything is loaded from the library. */

#include "Python.h"

#define WIN32_LEAN_AND_MEAN
#include <windows.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