Skip to content

Commit af8bee4

Browse files
committed
cpan/Win32: import PR 39
perl-libwin32/win32#37 was submitted ih June 2022, and fixes a bug that causes tests to fail for Win32.pm for 32-bit builds on windows, including in perl (and in 5.40.) Jan requested a minor change to that PR which wasn't followed up on, so I submitted perl-libwin32/win32#39 which includes that requested change in Augest 2023. This still has been acted on. So import this change into blead.
1 parent 1b7e058 commit af8bee4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

cpan/Win32/Win32.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ package Win32;
88
require DynaLoader;
99

1010
@ISA = qw|Exporter DynaLoader|;
11-
$VERSION = '0.59';
11+
$VERSION = '0.59_01';
1212
$XS_VERSION = $VERSION;
1313
$VERSION = eval $VERSION;
1414

cpan/Win32/Win32.xs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ typedef LONG (WINAPI *PFNRegGetValueA)(HKEY, LPCSTR, LPCSTR, DWORD, LPDWORD, PVO
102102
# define CSIDL_FLAG_CREATE 0x8000
103103
#endif
104104

105+
#ifndef RRF_SUBKEY_WOW6464KEY
106+
# define RRF_SUBKEY_WOW6464KEY 0x00010000
107+
#endif
108+
105109
/* Use explicit struct definition because wSuiteMask and
106110
* wProductType are not defined in the VC++ 6.0 headers.
107111
* WORD type has been replaced by unsigned short because
@@ -1693,7 +1697,7 @@ XS(w32_IsDeveloperModeEnabled)
16931697
HKEY_LOCAL_MACHINE,
16941698
"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\AppModelUnlock",
16951699
"AllowDevelopmentWithoutDevLicense",
1696-
RRF_RT_REG_DWORD | KEY_WOW64_64KEY,
1700+
RRF_RT_REG_DWORD | RRF_SUBKEY_WOW6464KEY,
16971701
NULL,
16981702
&val,
16991703
&val_size

0 commit comments

Comments
 (0)