Author: dchapyshev
Date: Sat May 9 13:18:43 2009
New Revision: 40846
URL:
http://svn.reactos.org/svn/reactos?rev=40846&view=rev
Log:
- Sync clusapi, credui, crypt32, cryptui with Wine 1.1.21
Modified:
trunk/reactos/dll/win32/clusapi/clusapi.c
trunk/reactos/dll/win32/clusapi/clusapi.spec
trunk/reactos/dll/win32/credui/credui_Ro.rc
trunk/reactos/dll/win32/crypt32/protectdata.c
trunk/reactos/dll/win32/cryptui/main.c
Modified: trunk/reactos/dll/win32/clusapi/clusapi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/clusapi/clusapi.…
==============================================================================
--- trunk/reactos/dll/win32/clusapi/clusapi.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/clusapi/clusapi.c [iso-8859-1] Sat May 9 13:18:43 2009
@@ -97,7 +97,7 @@
*/
DWORD WINAPI ClusterEnum(HCLUSENUM hEnum, DWORD dwIndex, LPDWORD lpdwType, LPWSTR
lpszName, LPDWORD lpcchName)
{
- FIXME("(%p, %u, %u, %s, %u) stub!\n", hEnum, dwIndex, *lpdwType,
debugstr_w(lpszName), *lpcchName);
+ FIXME("(%p, %u, %u, %p, %u) stub!\n", hEnum, dwIndex, *lpdwType, lpszName,
*lpcchName);
return ERROR_NO_MORE_ITEMS;
}
Modified: trunk/reactos/dll/win32/clusapi/clusapi.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/clusapi/clusapi.…
==============================================================================
--- trunk/reactos/dll/win32/clusapi/clusapi.spec [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/clusapi/clusapi.spec [iso-8859-1] Sat May 9 13:18:43 2009
@@ -12,7 +12,7 @@
@ stub CloseClusterResource
@ stdcall ClusterCloseEnum(ptr)
@ stub ClusterControl
-@ stdcall ClusterEnum(ptr long ptr wstr ptr)
+@ stdcall ClusterEnum(ptr long ptr ptr ptr)
@ stub ClusterGetEnumCount
@ stub ClusterGroupCloseEnum
@ stub ClusterGroupControl
Modified: trunk/reactos/dll/win32/credui/credui_Ro.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/credui/credui_Ro…
==============================================================================
--- trunk/reactos/dll/win32/credui/credui_Ro.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/credui/credui_Ro.rc [iso-8859-1] Sat May 9 13:18:43 2009
@@ -47,7 +47,7 @@
IDS_INCORRECTPASSWORDTITLE "Autentificare eÈuatÄ"
IDS_INCORRECTPASSWORD "VerificaÈi numele de utilizator Èi parola."
IDS_CAPSLOCKONTITLE "Tasta Caps Lock este activatÄ"
- IDS_CAPSLOCKON "Cu tasta Caps Lock activatÄ este foarte probabil cÄ veÈi
introduce parola greÈit. \n\nInainte de a introduce parola apÄsaÈi tasta Caps Lock
pentru a dezactiva scrierea cu majuscule."
+ IDS_CAPSLOCKON "Cu tasta Caps Lock activatÄ este foarte probabil cÄ veÈi
introduce parola greÈit.\n\nInainte de a introduce parola apÄsaÈi tasta Caps Lock
pentru a dezactiva scrierea cu majuscule."
}
#pragma code_page(default)
Modified: trunk/reactos/dll/win32/crypt32/protectdata.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/crypt32/protectd…
==============================================================================
--- trunk/reactos/dll/win32/crypt32/protectdata.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/crypt32/protectdata.c [iso-8859-1] Sat May 9 13:18:43 2009
@@ -616,11 +616,9 @@
return FALSE;
}
pInfo->salt.cbData=CRYPT32_PROTECTDATA_SALT_LEN;
- }
-
- /* debug: show our salt */
- TRACE_DATA_BLOB(&pInfo->salt);
-
+ /* debug: show our salt */
+ TRACE_DATA_BLOB(&pInfo->salt);
+ }
pInfo->cipher.cbData=0;
pInfo->cipher.pbData=NULL;
Modified: trunk/reactos/dll/win32/cryptui/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/cryptui/main.c?r…
==============================================================================
--- trunk/reactos/dll/win32/cryptui/main.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/cryptui/main.c [iso-8859-1] Sat May 9 13:18:43 2009
@@ -4993,6 +4993,12 @@
data = (struct ImportWizData *)page->lParam;
SetWindowLongPtrW(hwnd, DWLP_USER, (LPARAM)data);
+ if (data->fileName)
+ {
+ HWND fileNameEdit = GetDlgItem(hwnd, IDC_IMPORT_FILENAME);
+
+ SendMessageW(fileNameEdit, WM_SETTEXT, 0, (LPARAM)data->fileName);
+ }
break;
}
case WM_NOTIFY:
@@ -5383,10 +5389,15 @@
data.dwFlags = dwFlags;
data.pwszWizardTitle = pwszWizardTitle;
if (pImportSrc)
+ {
memcpy(&data.importSrc, pImportSrc, sizeof(data.importSrc));
+ data.fileName = (LPWSTR)pImportSrc->u.pwszFileName;
+ }
else
+ {
memset(&data.importSrc, 0, sizeof(data.importSrc));
- data.fileName = NULL;
+ data.fileName = NULL;
+ }
data.freeSource = FALSE;
data.hDestCertStore = hDestCertStore;
data.freeDest = FALSE;
@@ -5470,7 +5481,8 @@
hdr.u4.pszbmWatermark = MAKEINTRESOURCEW(IDB_CERT_WATERMARK);
hdr.u5.pszbmHeader = MAKEINTRESOURCEW(IDB_CERT_HEADER);
PropertySheetW(&hdr);
- HeapFree(GetProcessHeap(), 0, data.fileName);
+ if (data.fileName != data.importSrc.u.pwszFileName)
+ HeapFree(GetProcessHeap(), 0, data.fileName);
if (data.freeSource &&
data.importSrc.dwSubjectChoice == CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_STORE)
CertCloseStore(data.importSrc.u.hCertStore, 0);