Skip to content

Commit 169ffa3

Browse files
rickpriceicanhasmath
authored andcommitted
Add debug patch
1 parent d375419 commit 169ffa3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Python/dynload_win.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,15 @@ static char *GetPythonImport (HINSTANCE hModule)
129129
!strncmp(import_name,"python",6)) {
130130
char *pch;
131131

132-
#ifndef _DEBUG
133-
/* In a release version, don't claim that python3.dll is
134-
a Python DLL. */
132+
/* Don't claim that python3.dll is a Python DLL. */
133+
#ifdef _DEBUG
134+
if (strcmp(import_name, "python3_d.dll") == 0) {
135+
#else
135136
if (strcmp(import_name, "python3.dll") == 0) {
137+
#endif
136138
import_data += 20;
137139
continue;
138140
}
139-
#endif
140141

141142
/* Ensure python prefix is followed only
142143
by numbers to the end of the basename */

0 commit comments

Comments
 (0)