Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3db4103

Browse files
committed
Use MS_DLL_ID and similar changes
1 parent 8b9ea87 commit 3db4103

4 files changed

Lines changed: 7 additions & 10 deletions

File tree

PC/config.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ compiler specific". Therefore, these should be very rare.
4444
#define PREFIX ""
4545
#define EXEC_PREFIX ""
4646

47-
#ifndef WIN32_PATCH_LEVEL
48-
#define WIN32_PATCH_LEVEL "14"
49-
#endif
50-
5147
/* Microsoft C defines _MSC_VER */
5248

5349
#if defined(_MSC_VER) && _MSC_VER > 850

PC/getpath_nt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ getpythonregpath(HKEY keyBase, BOOL bWin32s)
5454
LONG rc;
5555
char *retval = NULL;
5656
char *dataBuf;
57-
if ((rc=RegOpenKey(keyBase, "Software\\Python\\PythonCore\\" WIN32_PATCH_LEVEL "\\PythonPath",
57+
if ((rc=RegOpenKey(keyBase, "Software\\Python\\PythonCore\\" MS_DLL_ID "\\PythonPath",
5858
&newKey))==ERROR_SUCCESS) {
5959
RegQueryInfoKey(newKey, NULL, NULL, NULL, NULL, NULL, NULL,
6060
&numEntries, &nameSize, &dataSize, NULL, NULL );

PC/import_nt.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "allobjects.h"
1010
#include "osdefs.h"
1111
#include <windows.h>
12-
#include "import.h"
1312
#include "importdl.h"
1413

1514
extern BOOL PyWin_IsWin32s();
@@ -21,7 +20,7 @@ FILE *PyWin_FindRegisteredModule( const char *moduleName, struct filedescr **ppF
2120
FILE *fp;
2221
int modNameSize = pathLen;
2322
HKEY keyBase = PyWin_IsWin32s() ? HKEY_CLASSES_ROOT : HKEY_LOCAL_MACHINE;
24-
strcpy(moduleKey, "Software\\Python\\PythonCore\\" WIN32_PATCH_LEVEL "\\Modules\\");
23+
strcpy(moduleKey, "Software\\Python\\PythonCore\\" MS_DLL_ID "\\Modules\\");
2524
strcat(moduleKey, moduleName);
2625
if (RegQueryValue(keyBase, moduleKey, pathBuf, &modNameSize)!=ERROR_SUCCESS)
2726
return NULL;

PC/python_nt.rc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111
#define PYTHON_VERSION MS_DLL_ID "." PYTHON_API_STRING "\0"
1212

13+
#ifndef PYTHON_DLL_NAME
14+
#define PYTHON_DLL_NAME "Python14.dll"
15+
#endif
16+
1317
/////////////////////////////////////////////////////////////////////////////
1418
//
1519
// Version
@@ -32,14 +36,12 @@ BEGIN
3236
BEGIN
3337
BLOCK "000004b0"
3438
BEGIN
35-
VALUE "CompanyName", "PSA\0"
39+
VALUE "CompanyName", "Corporation for National Research Initatives\0"
3640
VALUE "FileDescription", "Python Core\0"
3741
VALUE "FileVersion", PYTHON_VERSION
3842
VALUE "InternalName", "Python DLL\0"
3943
VALUE "LegalCopyright", "Copyright � 1991-1996 Stichting Mathematisch Centrum, Amsterdam\0"
40-
#ifdef PYTHON_DLL_NAME
4144
VALUE "OriginalFilename", PYTHON_DLL_NAME "\0"
42-
#endif
4345
VALUE "ProductName", "Python\0"
4446
VALUE "ProductVersion", PYTHON_VERSION
4547
END

0 commit comments

Comments
 (0)