Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpan/Win32: import PR 39 #22393

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cpan/Win32/Win32.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package Win32;
require DynaLoader;

@ISA = qw|Exporter DynaLoader|;
$VERSION = '0.59';
$VERSION = '0.59_01';
$XS_VERSION = $VERSION;
$VERSION = eval $VERSION;

Expand Down
6 changes: 5 additions & 1 deletion cpan/Win32/Win32.xs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ typedef LONG (WINAPI *PFNRegGetValueA)(HKEY, LPCSTR, LPCSTR, DWORD, LPDWORD, PVO
# define CSIDL_FLAG_CREATE 0x8000
#endif

#ifndef RRF_SUBKEY_WOW6464KEY
# define RRF_SUBKEY_WOW6464KEY 0x00010000
#endif

/* Use explicit struct definition because wSuiteMask and
* wProductType are not defined in the VC++ 6.0 headers.
* WORD type has been replaced by unsigned short because
Expand Down Expand Up @@ -1693,7 +1697,7 @@ XS(w32_IsDeveloperModeEnabled)
HKEY_LOCAL_MACHINE,
"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\AppModelUnlock",
"AllowDevelopmentWithoutDevLicense",
RRF_RT_REG_DWORD | KEY_WOW64_64KEY,
RRF_RT_REG_DWORD | RRF_SUBKEY_WOW6464KEY,
NULL,
&val,
&val_size
Expand Down