diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-09-28 22:42:28 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-09-28 22:42:28 (GMT) |
commit | 639418812f11749f99d1160b26325bdfa3a26a6f (patch) | |
tree | eb438b6f5e06b7a5144567ff5c95c190bf850cc1 /PC/frozen_dllmain.c | |
parent | b9dcffb51e0075f70434febb6ea557cc4d22f5fd (diff) | |
download | cpython-639418812f11749f99d1160b26325bdfa3a26a6f.zip cpython-639418812f11749f99d1160b26325bdfa3a26a6f.tar.gz cpython-639418812f11749f99d1160b26325bdfa3a26a6f.tar.bz2 |
Use the new Py_ARRAY_LENGTH macro
Diffstat (limited to 'PC/frozen_dllmain.c')
-rw-r--r-- | PC/frozen_dllmain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/PC/frozen_dllmain.c b/PC/frozen_dllmain.c index a8cc885..e1e4eda 100644 --- a/PC/frozen_dllmain.c +++ b/PC/frozen_dllmain.c @@ -77,7 +77,7 @@ void PyWinFreeze_ExeTerm(void) { // Must go backwards char **modName; - for (modName = possibleModules+(sizeof(possibleModules) / sizeof(char *))-2; + for (modName = possibleModules+Py_ARRAY_LENGTH(possibleModules)-2; modName >= possibleModules; *modName--) { /* printf("Terminating '%s'\n", *modName);*/ @@ -103,7 +103,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved) { // Must go backwards char **modName; - for (modName = possibleModules+(sizeof(possibleModules) / sizeof(char *))-2; + for (modName = possibleModules+Py_ARRAY_LENGTH(possibleModules)-2; modName >= possibleModules; *modName--) CallModuleDllMain(*modName, DLL_PROCESS_DETACH); |