Skip to content

Commit

Permalink
refactor: argument naming
Browse files Browse the repository at this point in the history
  • Loading branch information
muneebkq committed Jan 8, 2025
1 parent 03b3d34 commit 2ddb948
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Cryptlex.LexActivator/LexActivator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -946,11 +946,11 @@ public static uint GetLicenseActivationDate()
/// <returns>Returns the timestamp.</returns>
public static uint GetActivationCreationDate()
{
uint activationDate = 0;
uint activationCreationDate = 0;
int status;
if (LexActivatorNative.IsWindows())
{
status = IntPtr.Size == 4 ? LexActivatorNative.GetActivationCreationDate_x86(ref activationDate) : LexActivatorNative.GetActivationCreationDate(ref activationDate);
status = IntPtr.Size == 4 ? LexActivatorNative.GetActivationCreationDate_x86(ref activationCreationDate) : LexActivatorNative.GetActivationCreationDate(ref activationCreationDate);
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion src/Cryptlex.LexActivator/LexActivatorNative.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public static bool IsWindows()
public static extern int GetLicenseActivationDate(ref uint activationDate);

[DllImport(DLL_FILE_NAME, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetActivationCreationDate(ref uint activationDate);
public static extern int GetActivationCreationDate(ref uint activationCreationDate);

[DllImport(DLL_FILE_NAME, CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetLicenseExpiryDate(ref uint expiryDate);
Expand Down

0 comments on commit 2ddb948

Please sign in to comment.