mirror of
https://github.com/python/cpython.git
synced 2025-11-14 07:49:28 +00:00
Reset the resource file chain before calling PyMac_OpenPrefFile. I'm not sure why this wasn't a problem before...
This commit is contained in:
parent
f7fb3e6435
commit
c6cecf55d1
1 changed files with 1 additions and 0 deletions
|
|
@ -96,6 +96,7 @@ extern "C" void GUSISetupConfig()
|
||||||
resource_id = GUSIOPTIONSOVERRIDE_ID;
|
resource_id = GUSIOPTIONSOVERRIDE_ID;
|
||||||
} else {
|
} else {
|
||||||
/* Next try normal resource from preference file */
|
/* Next try normal resource from preference file */
|
||||||
|
UseResFile(oldrh);
|
||||||
prefrh = PyMac_OpenPrefFile();
|
prefrh = PyMac_OpenPrefFile();
|
||||||
h = Get1Resource('GU\267I', GUSIOPTIONS_ID);
|
h = Get1Resource('GU\267I', GUSIOPTIONS_ID);
|
||||||
if ( h ) {
|
if ( h ) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue