Author: mkupfer
Date: Sun May 15 14:00:08 2011
New Revision: 51761

URL: http://svn.reactos.org/svn/reactos?rev=51761&view=rev
Log:
- make "Network connection" translatable
- fixes spacer for centered progressbar in minitui

Modified:
    trunk/reactos/boot/freeldr/freeldr/ui/minitui.c
    trunk/reactos/dll/win32/netcfgx/netcfgx.c

Modified: trunk/reactos/boot/freeldr/freeldr/ui/minitui.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/ui/minitui.c?rev=51761&r1=51760&r2=51761&view=diff
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/ui/minitui.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/ui/minitui.c [iso-8859-1] Sun May 15 
14:00:08 2011
@@ -52,7 +52,7 @@
 VOID MiniTuiDrawProgressBar(ULONG Left, ULONG Top, ULONG Right, ULONG Bottom, 
ULONG Position, ULONG Range, PCHAR ProgressText)
 {
        ULONG           i;
-       ULONG           ProgressBarWidth = (Right - Left) - 3;
+       ULONG           ProgressBarWidth = (Right - Left) - 4;
 
        // First make sure the progress bar text fits
        UiTruncateStringEllipsis(ProgressText, ProgressBarWidth - 4);

Modified: trunk/reactos/dll/win32/netcfgx/netcfgx.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netcfgx/netcfgx.c?rev=51761&r1=51760&r2=51761&view=diff
==============================================================================
--- trunk/reactos/dll/win32/netcfgx/netcfgx.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netcfgx/netcfgx.c [iso-8859-1] Sun May 15 14:00:08 
2011
@@ -337,6 +337,7 @@
        HKEY hLinkageKey = NULL;
        HKEY hConnectionKey = NULL;
        DWORD dwShowIcon, dwLength, dwValue;
+       WCHAR szBuffer[300];
 
        /* Get Instance ID */
        if (SetupDiGetDeviceInstanceIdW(DeviceInfoSet, DeviceInfoData, NULL, 0, 
&dwLength))
@@ -514,7 +515,11 @@
                DPRINT("RegCreateKeyExW() failed with error 0x%lx\n", rc);
                goto cleanup;
        }
-       rc = RegSetValueExW(hConnectionKey, L"Name", 0, REG_SZ, (const 
BYTE*)L"Network connection", (wcslen(L"Network connection") + 1) * 
sizeof(WCHAR));
+       if (!LoadStringW(netcfgx_hInstance, IDS_NET_CONNECT, szBuffer, 
sizeof(szBuffer)/sizeof(WCHAR)))
+       {
+               wcscpy(szBuffer,L"Network connection");
+       }
+       rc = RegSetValueExW(hConnectionKey, L"Name", 0, REG_SZ, (const 
BYTE*)szBuffer, (wcslen(szBuffer) + 1) * sizeof(WCHAR));
        if (rc != ERROR_SUCCESS)
        {
                DPRINT("RegSetValueExW() failed with error 0x%lx\n", rc);


Reply via email to