URL: http://github.com/python/cpython/commit/89f8177dcfdbcf17c85bb6998c946c9f42bf6e27
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc4a044 commit 89f8177Copy full SHA for 89f8177
PC/python_uwp.cpp
@@ -167,7 +167,10 @@ wmain(int argc, wchar_t **argv)
167
PyStatus status;
168
169
PyPreConfig preconfig;
170
+ preconfig.struct_size = sizeof(PyPreConfig);
171
+
172
PyConfig config;
173
+ config.struct_size = sizeof(PyConfig);
174
175
const wchar_t *moduleName = NULL;
176
const wchar_t *p = wcsrchr(argv[0], L'\\');
@@ -186,7 +189,10 @@ wmain(int argc, wchar_t **argv)
186
189
}
187
190
188
191
- PyPreConfig_InitPythonConfig(&preconfig);
192
+ status = PyPreConfig_InitPythonConfig(&preconfig);
193
+ if (PyStatus_Exception(status)) {
194
+ goto fail_without_config;
195
+ }
196
if (!moduleName) {
197
status = Py_PreInitializeFromArgs(&preconfig, argc, argv);
198
if (PyStatus_Exception(status)) {
0 commit comments