Skip to content

Commit

Permalink
misc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
a1ive committed Nov 9, 2023
1 parent f09430a commit 149e94f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
2 changes: 2 additions & 0 deletions gnwinfo/hostname.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ set_hostname(const char* text)
NWL_NtSetRegValue(HKEY_LOCAL_MACHINE, L"SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters", L"Hostname", hostname, len, REG_SZ);
NWL_NtSetRegValue(HKEY_LOCAL_MACHINE, L"SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters", L"NV Hostname", hostname, len, REG_SZ);

NWL_NtSetRegValue(HKEY_LOCAL_MACHINE, L"SYSTEM\\CurrentControlSet\\Services\\EventLog\\State", L"LastComputerName", hostname, len, REG_SZ);

NWL_NtSetRegValue(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon", L"AltDefaultDomainName", hostname, len, REG_SZ);
NWL_NtSetRegValue(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon", L"DefaultDomainName", hostname, len, REG_SZ);

Expand Down
15 changes: 0 additions & 15 deletions libnw/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,21 +363,6 @@ GetEDID(PNODE nm, HDEVINFO devInfo, PSP_DEVINFO_DATA devInfoData, CHAR* Ids, DWO
RegCloseKey(hDevRegKey);
}

#if 0
static LPCSTR
GetOrientation(short dmOrientation)
{
switch (dmOrientation)
{
case DMDO_DEFAULT: return "DEFAULT";
case DMDO_90: return "90";
case DMDO_180: return "180";
case DMDO_270: return "270";
}
return "UNKNOWN";
}
#endif

static VOID
EnumRes(PNODE node, LPCWSTR dev)
{
Expand Down
4 changes: 2 additions & 2 deletions libnw/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

#define NWINFO_MAJOR_VERSION 0
#define NWINFO_MINOR_VERSION 9
#define NWINFO_MICRO_VERSION 0
#define NWINFO_BUILD_VERSION 2
#define NWINFO_MICRO_VERSION 1
#define NWINFO_BUILD_VERSION 0

#define NWINFO_VERSION NWINFO_MAJOR_VERSION,NWINFO_MINOR_VERSION,NWINFO_MICRO_VERSION,NWINFO_BUILD_VERSION
#define NWINFO_VERSION_STR QUOTE(NWINFO_MAJOR_VERSION.NWINFO_MINOR_VERSION.NWINFO_MICRO_VERSION.NWINFO_BUILD_VERSION)
Expand Down

0 comments on commit 149e94f

Please sign in to comment.