mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Sync to Wine-20050419:
Jose Manuel Ferrer Ortiz <jmfo1982@yahoo.es> - Spanish translations updated. Jakob Eriksson <jakov@vmlinux.org> - Get rid of HeapAlloc casts. svn path=/trunk/; revision=14822
This commit is contained in:
parent
6119adfe22
commit
f668ceb14f
2 changed files with 35 additions and 19 deletions
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* MPR dll Spanish resources
|
* MPR dll Spanish resources
|
||||||
*
|
*
|
||||||
* Copyright (C) 2004 José Manuel Ferrer Ortiz
|
* Copyright (C) 2004, 2005 José Manuel Ferrer Ortiz
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
@ -24,3 +24,23 @@ STRINGTABLE DISCARDABLE
|
||||||
{
|
{
|
||||||
IDS_ENTIRENETWORK "Toda la red"
|
IDS_ENTIRENETWORK "Toda la red"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IDD_PROXYDLG DIALOG LOADONCALL MOVEABLE DISCARDABLE 36, 24, 250, 154
|
||||||
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||||
|
CAPTION "Introduzca contraseña de red"
|
||||||
|
FONT 8, "MS Shell Dlg"
|
||||||
|
{
|
||||||
|
LTEXT "Por favor, introduzca su nombre de usuario y contraseña:", IDC_EXPLAIN, 40, 6, 150, 15
|
||||||
|
LTEXT "Proxy", -1, 40, 26, 50, 10
|
||||||
|
/* LTEXT "Realm", -1, 40, 46, 50, 10 */
|
||||||
|
LTEXT "Usuario", -1, 40, 66, 50, 10
|
||||||
|
LTEXT "Contraseña", -1, 40, 86, 50, 10
|
||||||
|
LTEXT "" IDC_PROXY, 80, 26, 150, 14, 0
|
||||||
|
LTEXT "" IDC_REALM, 80, 46, 150, 14, 0
|
||||||
|
EDITTEXT IDC_USERNAME, 80, 66, 150, 14, ES_AUTOHSCROLL | WS_BORDER | WS_TABSTOP
|
||||||
|
EDITTEXT IDC_PASSWORD, 80, 86, 150, 14, ES_AUTOHSCROLL | WS_BORDER | WS_TABSTOP | ES_PASSWORD
|
||||||
|
CHECKBOX "&Guardar esta contraseña (Inseguro)", IDC_SAVEPASSWORD,
|
||||||
|
80, 106, 150, 12, BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP
|
||||||
|
PUSHBUTTON "Aceptar", IDOK, 98, 126, 56, 14, WS_GROUP | WS_TABSTOP | BS_DEFPUSHBUTTON
|
||||||
|
PUSHBUTTON "Cancelar", IDCANCEL, 158, 126, 56, 14, WS_GROUP | WS_TABSTOP
|
||||||
|
}
|
||||||
|
|
|
@ -138,7 +138,7 @@ static void _tryLoadProvider(PCWSTR provider)
|
||||||
RegQueryValueExW(hKey, szProviderName, NULL, NULL, NULL, &size);
|
RegQueryValueExW(hKey, szProviderName, NULL, NULL, NULL, &size);
|
||||||
if (size)
|
if (size)
|
||||||
{
|
{
|
||||||
name = (PWSTR)HeapAlloc(GetProcessHeap(), 0, size);
|
name = HeapAlloc(GetProcessHeap(), 0, size);
|
||||||
if (RegQueryValueExW(hKey, szProviderName, NULL, &type,
|
if (RegQueryValueExW(hKey, szProviderName, NULL, &type,
|
||||||
(LPBYTE)name, &size) != ERROR_SUCCESS || type != REG_SZ)
|
(LPBYTE)name, &size) != ERROR_SUCCESS || type != REG_SZ)
|
||||||
{
|
{
|
||||||
|
@ -243,7 +243,7 @@ void wnetInit(HINSTANCE hInstDll)
|
||||||
RegQueryValueExW(hKey, providerOrder, NULL, NULL, NULL, &size);
|
RegQueryValueExW(hKey, providerOrder, NULL, NULL, NULL, &size);
|
||||||
if (size)
|
if (size)
|
||||||
{
|
{
|
||||||
PWSTR providers = (PWSTR)HeapAlloc(GetProcessHeap(), 0, size);
|
PWSTR providers = HeapAlloc(GetProcessHeap(), 0, size);
|
||||||
|
|
||||||
if (providers)
|
if (providers)
|
||||||
{
|
{
|
||||||
|
@ -264,7 +264,7 @@ void wnetInit(HINSTANCE hInstDll)
|
||||||
if (ptr)
|
if (ptr)
|
||||||
numToAllocate++;
|
numToAllocate++;
|
||||||
}
|
}
|
||||||
providerTable = (PWNetProviderTable)
|
providerTable =
|
||||||
HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
|
HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
|
||||||
sizeof(WNetProviderTable)
|
sizeof(WNetProviderTable)
|
||||||
+ (numToAllocate - 1) * sizeof(WNetProvider));
|
+ (numToAllocate - 1) * sizeof(WNetProvider));
|
||||||
|
@ -275,7 +275,7 @@ void wnetInit(HINSTANCE hInstDll)
|
||||||
|
|
||||||
entireNetworkLen = LoadStringW(hInstDll,
|
entireNetworkLen = LoadStringW(hInstDll,
|
||||||
IDS_ENTIRENETWORK, NULL, 0);
|
IDS_ENTIRENETWORK, NULL, 0);
|
||||||
providerTable->entireNetwork = (LPWSTR)HeapAlloc(
|
providerTable->entireNetwork = HeapAlloc(
|
||||||
GetProcessHeap(), 0, (entireNetworkLen + 1) *
|
GetProcessHeap(), 0, (entireNetworkLen + 1) *
|
||||||
sizeof(WCHAR));
|
sizeof(WCHAR));
|
||||||
if (providerTable->entireNetwork)
|
if (providerTable->entireNetwork)
|
||||||
|
@ -343,8 +343,7 @@ static LPNETRESOURCEW _copyNetResourceForEnumW(LPNETRESOURCEW lpNet)
|
||||||
|
|
||||||
if (lpNet)
|
if (lpNet)
|
||||||
{
|
{
|
||||||
ret = (LPNETRESOURCEW)HeapAlloc(GetProcessHeap(), 0,
|
ret = HeapAlloc(GetProcessHeap(), 0, sizeof(NETRESOURCEW));
|
||||||
sizeof(NETRESOURCEW));
|
|
||||||
if (ret)
|
if (ret)
|
||||||
{
|
{
|
||||||
size_t len;
|
size_t len;
|
||||||
|
@ -354,8 +353,7 @@ static LPNETRESOURCEW _copyNetResourceForEnumW(LPNETRESOURCEW lpNet)
|
||||||
if (lpNet->lpRemoteName)
|
if (lpNet->lpRemoteName)
|
||||||
{
|
{
|
||||||
len = strlenW(lpNet->lpRemoteName) + 1;
|
len = strlenW(lpNet->lpRemoteName) + 1;
|
||||||
ret->lpRemoteName = (LPWSTR)HeapAlloc(GetProcessHeap(), 0,
|
ret->lpRemoteName = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
|
||||||
len * sizeof(WCHAR));
|
|
||||||
if (ret->lpRemoteName)
|
if (ret->lpRemoteName)
|
||||||
strcpyW(ret->lpRemoteName, lpNet->lpRemoteName);
|
strcpyW(ret->lpRemoteName, lpNet->lpRemoteName);
|
||||||
}
|
}
|
||||||
|
@ -377,7 +375,7 @@ static void _freeEnumNetResource(LPNETRESOURCEW lpNet)
|
||||||
|
|
||||||
static PWNetEnumerator _createNullEnumerator(void)
|
static PWNetEnumerator _createNullEnumerator(void)
|
||||||
{
|
{
|
||||||
PWNetEnumerator ret = (PWNetEnumerator)HeapAlloc(GetProcessHeap(),
|
PWNetEnumerator ret = HeapAlloc(GetProcessHeap(),
|
||||||
HEAP_ZERO_MEMORY, sizeof(WNetEnumerator));
|
HEAP_ZERO_MEMORY, sizeof(WNetEnumerator));
|
||||||
|
|
||||||
if (ret)
|
if (ret)
|
||||||
|
@ -388,7 +386,7 @@ static PWNetEnumerator _createNullEnumerator(void)
|
||||||
static PWNetEnumerator _createGlobalEnumeratorW(DWORD dwScope, DWORD dwType,
|
static PWNetEnumerator _createGlobalEnumeratorW(DWORD dwScope, DWORD dwType,
|
||||||
DWORD dwUsage, LPNETRESOURCEW lpNet)
|
DWORD dwUsage, LPNETRESOURCEW lpNet)
|
||||||
{
|
{
|
||||||
PWNetEnumerator ret = (PWNetEnumerator)HeapAlloc(GetProcessHeap(),
|
PWNetEnumerator ret = HeapAlloc(GetProcessHeap(),
|
||||||
HEAP_ZERO_MEMORY, sizeof(WNetEnumerator));
|
HEAP_ZERO_MEMORY, sizeof(WNetEnumerator));
|
||||||
|
|
||||||
if (ret)
|
if (ret)
|
||||||
|
@ -411,8 +409,7 @@ static PWNetEnumerator _createProviderEnumerator(DWORD dwScope, DWORD dwType,
|
||||||
ret = NULL;
|
ret = NULL;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret = (PWNetEnumerator)HeapAlloc(GetProcessHeap(),
|
ret = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(WNetEnumerator));
|
||||||
HEAP_ZERO_MEMORY, sizeof(WNetEnumerator));
|
|
||||||
if (ret)
|
if (ret)
|
||||||
{
|
{
|
||||||
ret->enumType = WNET_ENUMERATOR_TYPE_PROVIDER;
|
ret->enumType = WNET_ENUMERATOR_TYPE_PROVIDER;
|
||||||
|
@ -429,7 +426,7 @@ static PWNetEnumerator _createProviderEnumerator(DWORD dwScope, DWORD dwType,
|
||||||
static PWNetEnumerator _createContextEnumerator(DWORD dwScope, DWORD dwType,
|
static PWNetEnumerator _createContextEnumerator(DWORD dwScope, DWORD dwType,
|
||||||
DWORD dwUsage)
|
DWORD dwUsage)
|
||||||
{
|
{
|
||||||
PWNetEnumerator ret = (PWNetEnumerator)HeapAlloc(GetProcessHeap(),
|
PWNetEnumerator ret = HeapAlloc(GetProcessHeap(),
|
||||||
HEAP_ZERO_MEMORY, sizeof(WNetEnumerator));
|
HEAP_ZERO_MEMORY, sizeof(WNetEnumerator));
|
||||||
|
|
||||||
if (ret)
|
if (ret)
|
||||||
|
@ -641,7 +638,7 @@ DWORD WINAPI WNetOpenEnumA( DWORD dwScope, DWORD dwType, DWORD dwUsage,
|
||||||
ret = _thunkNetResourceArrayAToW(lpNet, &count, buf, &size);
|
ret = _thunkNetResourceArrayAToW(lpNet, &count, buf, &size);
|
||||||
if (ret == WN_MORE_DATA)
|
if (ret == WN_MORE_DATA)
|
||||||
{
|
{
|
||||||
lpNetWide = (LPNETRESOURCEW)HeapAlloc(GetProcessHeap(), 0,
|
lpNetWide = HeapAlloc(GetProcessHeap(), 0,
|
||||||
size);
|
size);
|
||||||
if (lpNetWide)
|
if (lpNetWide)
|
||||||
{
|
{
|
||||||
|
@ -1538,7 +1535,7 @@ DWORD WINAPI WNetGetConnectionA( LPCSTR lpLocalName,
|
||||||
|
|
||||||
if (len)
|
if (len)
|
||||||
{
|
{
|
||||||
PWSTR wideLocalName = (PWSTR)HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
|
PWSTR wideLocalName = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
|
||||||
|
|
||||||
if (wideLocalName)
|
if (wideLocalName)
|
||||||
{
|
{
|
||||||
|
@ -1569,7 +1566,7 @@ DWORD WINAPI WNetGetConnectionA( LPCSTR lpLocalName,
|
||||||
}
|
}
|
||||||
else if (ret == WN_MORE_DATA)
|
else if (ret == WN_MORE_DATA)
|
||||||
{
|
{
|
||||||
PWSTR wideRemote = (PWSTR)HeapAlloc(GetProcessHeap(), 0,
|
PWSTR wideRemote = HeapAlloc(GetProcessHeap(), 0,
|
||||||
wideRemoteSize * sizeof(WCHAR));
|
wideRemoteSize * sizeof(WCHAR));
|
||||||
|
|
||||||
if (wideRemote)
|
if (wideRemote)
|
||||||
|
@ -1863,8 +1860,7 @@ DWORD WINAPI WNetGetNetworkInformationA( LPCSTR lpProvider,
|
||||||
len = MultiByteToWideChar(CP_ACP, 0, lpProvider, -1, NULL, 0);
|
len = MultiByteToWideChar(CP_ACP, 0, lpProvider, -1, NULL, 0);
|
||||||
if (len)
|
if (len)
|
||||||
{
|
{
|
||||||
LPWSTR wideProvider = (LPWSTR)HeapAlloc(GetProcessHeap(), 0,
|
LPWSTR wideProvider = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
|
||||||
len * sizeof(WCHAR));
|
|
||||||
|
|
||||||
if (wideProvider)
|
if (wideProvider)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue