Module: wine
Branch: refs/heads/master
Commit: 64d5b80a02c54bbda7f6787737042c8e929e848b
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=64d5b80a02c54bbda7f6787…
Author: András Kovács <andras(a)csevego.net>
Date: Mon Mar 6 12:47:11 2006 +0100
avifil32: Added Hungarian translation.
---
dlls/avifil32/avifile_Hu.rc | 50 +++++++++++++++++++++++++++++++++++++++++++
dlls/avifil32/rsrc.rc | 1 +
2 files changed, 51 insertions(+), 0 deletions(-)
create mode 100644 dlls/avifil32/avifile_Hu.rc
diff --git a/dlls/avifil32/avifile_Hu.rc b/dlls/avifil32/avifile_Hu.rc
new file mode 100644
index 0000000..7fba293
--- /dev/null
+++ b/dlls/avifil32/avifile_Hu.rc
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2006 Andras Kovacs
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+LANGUAGE LANG_HUNGARIAN, SUBLANG_DEFAULT
+
+IDD_SAVEOPTIONS DIALOG FIXED IMPURE 43, 37, 196, 82
+STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
+CAPTION "T�m�r�t�si be�ll�t�sok"
+FONT 8, "MS Shell Dlg"
+BEGIN
+ LTEXT "&V�lassuon folyamot:",-1,2,5,114,10
+ COMBOBOX IDC_STREAM,2,18,134,61,CBS_DROPDOWNLIST | WS_VSCROLL |
+ WS_TABSTOP
+ PUSHBUTTON "&Opci�k...",IDC_OPTIONS,145,17,45,14
+ AUTOCHECKBOX "&Be�kel minden",IDC_INTERLEAVE,3,42,60,11,WS_TABSTOP
+ EDITTEXT IDC_INTERLEAVEEVERY,66,41,32,12,ES_AUTOHSCROLL
+ LTEXT "k�pkock�t",-1,104,43,36,9
+ LTEXT "Jelenlegi form�tum:",-1,3,56,53,9
+ LTEXT "Ez hely k�lcs�nz�sre",IDC_FORMATTEXT,55,56,90,26
+ DEFPUSHBUTTON "OK",IDOK,145,42,45,14
+ PUSHBUTTON "M�gse",IDCANCEL,145,61,45,14
+END
+
+STRINGTABLE DISCARDABLE
+{
+ IDS_WAVESTREAMFORMAT "Hull�mforma: %s"
+ IDS_WAVEFILETYPE "Hull�mforma"
+ IDS_ALLMULTIMEDIA "Minden multim�dia f�jl"
+ IDS_ALLFILES "Minden f�jl (*.*)(a)*.*"
+ IDS_VIDEO "video"
+ IDS_AUDIO "hang"
+ IDS_AVISTREAMFORMAT "%s %s #%d"
+ IDS_AVIFILETYPE "Wine AVI-alap�rtelmezett-f�jlkezel�"
+ IDS_UNCOMPRESSED "t�m�r�tetlen"
+}
diff --git a/dlls/avifil32/rsrc.rc b/dlls/avifil32/rsrc.rc
index a420171..c29ee18 100644
--- a/dlls/avifil32/rsrc.rc
+++ b/dlls/avifil32/rsrc.rc
@@ -43,6 +43,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#include "avifile_En.rc"
#include "avifile_Es.rc"
#include "avifile_Fr.rc"
+#include "avifile_Hu.rc"
#include "avifile_It.rc"
#include "avifile_Ja.rc"
#include "avifile_Ko.rc"
Module: wine
Branch: refs/heads/master
Commit: c460d9becf818d85fd8f65786a3d1b18a155efef
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=c460d9becf818d85fd8f657…
Author: Robert Reif <reif(a)earthlink.net>
Date: Tue Mar 14 19:17:43 2006 -0500
dsound: Add info to failed tests.
Print format for failed SetFormat calls.
---
dlls/dsound/tests/ds3d.c | 4 ++--
dlls/dsound/tests/ds3d8.c | 4 ++--
dlls/dsound/tests/dsound.c | 4 ++--
dlls/dsound/tests/dsound8.c | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/dlls/dsound/tests/ds3d.c b/dlls/dsound/tests/ds3d.c
index ce7be84..3d0c434 100644
--- a/dlls/dsound/tests/ds3d.c
+++ b/dlls/dsound/tests/ds3d.c
@@ -378,8 +378,8 @@ void test_buffer(LPDIRECTSOUND dso, LPDI
init_format(&wfx2,WAVE_FORMAT_PCM,11025,16,2);
rc=IDirectSoundBuffer_SetFormat(*dsbo,&wfx2);
- ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat() failed: %s\n",
- DXGetErrorString8(rc));
+ ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat(%s) failed: %s\n",
+ format_string(&wfx2), DXGetErrorString8(rc));
/* There is no garantee that SetFormat will actually change the
* format to what we asked for. It depends on what the soundcard
diff --git a/dlls/dsound/tests/ds3d8.c b/dlls/dsound/tests/ds3d8.c
index 6d440e2..c0c5d51 100644
--- a/dlls/dsound/tests/ds3d8.c
+++ b/dlls/dsound/tests/ds3d8.c
@@ -270,8 +270,8 @@ void test_buffer8(LPDIRECTSOUND8 dso, LP
init_format(&wfx2,WAVE_FORMAT_PCM,11025,16,2);
rc=IDirectSoundBuffer_SetFormat(*dsbo,&wfx2);
- ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat() failed: %s\n",
- DXGetErrorString8(rc));
+ ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat(%s) failed: %s\n",
+ format_string(&wfx2), DXGetErrorString8(rc));
/* There is no garantee that SetFormat will actually change the
* format to what we asked for. It depends on what the soundcard
diff --git a/dlls/dsound/tests/dsound.c b/dlls/dsound/tests/dsound.c
index 672ffe2..7905c99 100644
--- a/dlls/dsound/tests/dsound.c
+++ b/dlls/dsound/tests/dsound.c
@@ -550,8 +550,8 @@ static HRESULT test_primary_secondary(LP
formats[f][2]);
wfx2=wfx;
rc=IDirectSoundBuffer_SetFormat(primary,&wfx);
- ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat() failed: %s\n",
- DXGetErrorString8(rc));
+ ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat(%s) failed: %s\n",
+ format_string(&wfx), DXGetErrorString8(rc));
/* There is no garantee that SetFormat will actually change the
* format to what we asked for. It depends on what the soundcard
diff --git a/dlls/dsound/tests/dsound8.c b/dlls/dsound/tests/dsound8.c
index b5dc483..7a58330 100644
--- a/dlls/dsound/tests/dsound8.c
+++ b/dlls/dsound/tests/dsound8.c
@@ -582,8 +582,8 @@ static HRESULT test_primary_secondary8(L
formats[f][2]);
wfx2=wfx;
rc=IDirectSoundBuffer_SetFormat(primary,&wfx);
- ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat() failed: %s\n",
- DXGetErrorString8(rc));
+ ok(rc==DS_OK,"IDirectSoundBuffer_SetFormat(%s) failed: %s\n",
+ format_string(&wfx), DXGetErrorString8(rc));
/* There is no garantee that SetFormat will actually change the
* format to what we asked for. It depends on what the soundcard
Module: wine
Branch: refs/heads/master
Commit: 0811851b942fcfd929c9bb54126c2a43f3057d9e
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=0811851b942fcfd929c9bb5…
Author: Juan Lang <juan_lang(a)yahoo.com>
Date: Fri Mar 10 15:22:41 2006 -0800
crypt32: Abstract contexts.
- create a base cert context, and make functions unaware whether
they're dealing with the base or derived type
- simplify stores as a result
---
dlls/crypt32/store.c | 453 ++++++++++++++++++++++----------------------------
1 files changed, 198 insertions(+), 255 deletions(-)
Diff: http://source.winehq.org/git/?p=wine.git;a=commitdiff;h=0811851b942fcfd929c…
Module: wine
Branch: refs/heads/master
Commit: d4836e1ce1a8c831d76eef2ee8c712539983c763
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=d4836e1ce1a8c831d76eef2…
Author: Roderick Colenbrander <thunderbird2k(a)gmx.net>
Date: Sun Mar 12 16:27:31 2006 +0100
wined3d: Vertexdeclaration fix.
In the old d3d8 code SetVertexShader stored the so called vertex
declaration in the stateblock. In case of WineD3D this isn't done
which breaks the drawPrimitive code. This patch stores the vertex
declaration again in the stateblock which fixes Age Of Mythology.
---
dlls/wined3d/device.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 7ce1d59..eab7fbf 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -4046,6 +4046,11 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetVer
IWineD3DVertexShader_Release(oldShader);
}
+ if (pShader != NULL && ((IWineD3DVertexShaderImpl *)pShader)->vertexDeclaration != NULL) {
+ TRACE("(%p) : setting vertexDeclaration(%p)\n", This, ((IWineD3DVertexShaderImpl *)pShader)->vertexDeclaration);
+ IWineD3DDevice_SetVertexDeclaration(iface, ((IWineD3DVertexShaderImpl *)pShader)->vertexDeclaration);
+ }
+
TRACE("(%p) : setting pShader(%p)\n", This, pShader);
/**
* TODO: merge HAL shaders context switching from prototype
Module: wine
Branch: refs/heads/master
Commit: a18bdf13f7156ff96407a545170d74522171819f
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=a18bdf13f7156ff96407a54…
Author: Robert Shearman <rob(a)codeweavers.com>
Date: Mon Mar 13 11:28:28 2006 +0000
ntdll: Very crude implementation of RtlQueueWorkItem.
---
dlls/ntdll/Makefile.in | 1
dlls/ntdll/ntdll.spec | 2 -
dlls/ntdll/threadpool.c | 107 +++++++++++++++++++++++++++++++++++++++++++++++
include/winternl.h | 2 +
4 files changed, 111 insertions(+), 1 deletions(-)
create mode 100644 dlls/ntdll/threadpool.c
diff --git a/dlls/ntdll/Makefile.in b/dlls/ntdll/Makefile.in
index 73f2ef8..fa99da4 100644
--- a/dlls/ntdll/Makefile.in
+++ b/dlls/ntdll/Makefile.in
@@ -47,6 +47,7 @@ C_SRCS = \
tape.c \
version.c \
thread.c \
+ threadpool.c \
time.c \
virtual.c \
wcstring.c
diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec
index 8117197..7ccbbfd 100644
--- a/dlls/ntdll/ntdll.spec
+++ b/dlls/ntdll/ntdll.spec
@@ -781,7 +781,7 @@
@ stub RtlQueryTagHeap
@ stdcall RtlQueryTimeZoneInformation(ptr)
@ stub RtlQueueApcWow64Thread
-@ stub RtlQueueWorkItem
+@ stdcall RtlQueueWorkItem(ptr ptr long)
@ stdcall -register RtlRaiseException(ptr)
@ stdcall RtlRaiseStatus(long)
@ stdcall RtlRandom(ptr)
diff --git a/dlls/ntdll/threadpool.c b/dlls/ntdll/threadpool.c
new file mode 100644
index 0000000..10bda48
--- /dev/null
+++ b/dlls/ntdll/threadpool.c
@@ -0,0 +1,107 @@
+/*
+ * Thread pooling
+ *
+ * Copyright (c) 2006 Robert Shearman
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+#include <stdarg.h>
+
+#define NONAMELESSUNION
+#include "ntstatus.h"
+#define WIN32_NO_STATUS
+#include "winternl.h"
+
+#include "wine/debug.h"
+#include "ntdll_misc.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(threadpool);
+
+struct work_item
+{
+ PRTL_WORK_ITEM_ROUTINE function;
+ PVOID context;
+};
+
+static void WINAPI worker_thread_proc(void * param)
+{
+ struct work_item *work_item_ptr = (struct work_item *)param;
+ struct work_item work_item;
+
+ /* free the work item memory sooner to reduce memory usage */
+ work_item = *work_item_ptr;
+ RtlFreeHeap(GetProcessHeap(), 0, work_item_ptr);
+
+ TRACE("executing %p(%p)\n", work_item.function, work_item.context);
+
+ /* do the work */
+ work_item.function(work_item.context);
+
+ RtlExitUserThread(0);
+
+ /* never reached */
+}
+
+/***********************************************************************
+ * RtlQueueWorkItem (NTDLL.@)
+ *
+ * Queues a work item into a thread in the thread pool.
+ *
+ * PARAMS
+ * Function [I] Work function to execute.
+ * Context [I] Context to pass to the work function when it is executed.
+ * Flags [I] Flags. See notes.
+ *
+ * RETURNS
+ * Success: STATUS_SUCCESS.
+ * Failure: Any NTSTATUS code.
+ *
+ * NOTES
+ * Flags can be one or more of the following:
+ *|WT_EXECUTEDEFAULT - Executes the work item in a non-I/O worker thread.
+ *|WT_EXECUTEINIOTHREAD - Executes the work item in an I/O worker thread.
+ *|WT_EXECUTEINPERSISTENTTHREAD - Executes the work item in a thread that is persistent.
+ *|WT_EXECUTELONGFUNCTION - Hints that the execution can take a long time.
+ *|WT_TRANSFER_IMPERSONATION - Executes the function with the current access token.
+ */
+NTSTATUS WINAPI RtlQueueWorkItem(PRTL_WORK_ITEM_ROUTINE Function, PVOID Context, ULONG Flags)
+{
+ HANDLE thread;
+ NTSTATUS status;
+ struct work_item *work_item = RtlAllocateHeap(GetProcessHeap(), 0, sizeof(struct work_item));
+
+ if (!work_item)
+ return STATUS_NO_MEMORY;
+
+ work_item->function = Function;
+ work_item->context = Context;
+
+ if (Flags != WT_EXECUTEDEFAULT)
+ FIXME("Flags 0x%lx not supported\n", Flags);
+
+ /* FIXME: very crude implementation that doesn't support pooling at all */
+ status = RtlCreateUserThread( GetCurrentProcess(), NULL, FALSE,
+ NULL, 0, 0,
+ worker_thread_proc, work_item, &thread, NULL );
+ if (status != STATUS_SUCCESS)
+ {
+ RtlFreeHeap(GetProcessHeap(), 0, work_item);
+ return status;
+ }
+ NtClose( thread );
+
+ return STATUS_SUCCESS;
+}
diff --git a/include/winternl.h b/include/winternl.h
index 6666294..e3548d4 100644
--- a/include/winternl.h
+++ b/include/winternl.h
@@ -1429,6 +1429,7 @@ typedef struct _RTL_HANDLE_TABLE
typedef void (CALLBACK *PNTAPCFUNC)(ULONG_PTR,ULONG_PTR,ULONG_PTR); /* FIXME: not the right name */
typedef void (CALLBACK *PRTL_THREAD_START_ROUTINE)(LPVOID); /* FIXME: not the right name */
+typedef DWORD (CALLBACK *PRTL_WORK_ITEM_ROUTINE)(LPVOID); /* FIXME: not the right name */
/* DbgPrintEx default levels */
@@ -2129,6 +2130,7 @@ NTSTATUS WINAPI RtlQueryInformationAcl(
NTSTATUS WINAPI RtlQueryProcessDebugInformation(ULONG,ULONG,PDEBUG_BUFFER);
NTSTATUS WINAPI RtlQueryRegistryValues(ULONG, PCWSTR, PRTL_QUERY_REGISTRY_TABLE, PVOID, PVOID);
NTSTATUS WINAPI RtlQueryTimeZoneInformation(RTL_TIME_ZONE_INFORMATION*);
+NTSTATUS WINAPI RtlQueueWorkItem(PRTL_WORK_ITEM_ROUTINE,PVOID,ULONG);
void WINAPI RtlRaiseException(PEXCEPTION_RECORD);
void WINAPI RtlRaiseStatus(NTSTATUS);
ULONG WINAPI RtlRandom(PULONG);
Module: wine
Branch: refs/heads/master
Commit: 0252e5e875d6db0b774431c820029f98112e17a3
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=0252e5e875d6db0b774431c…
Author: Robert Shearman <rob(a)codeweavers.com>
Date: Sat Mar 11 18:11:25 2006 +0000
wininet: Fix the conversion of NULL component values from InternetCreateUrlA.
---
dlls/wininet/internet.c | 7 +++++--
dlls/wininet/tests/http.c | 2 --
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c
index 5e303ae..51db944 100644
--- a/dlls/wininet/internet.c
+++ b/dlls/wininet/internet.c
@@ -1097,14 +1097,17 @@ static void ConvertUrlComponentValue(LPS
LPWSTR lpwszComponent, DWORD dwwComponentLen,
LPCSTR lpszStart, LPCWSTR lpwszStart)
{
- TRACE("%p %p %p %ld %p %p\n", lppszComponent, dwComponentLen, lpwszComponent, dwwComponentLen, lpszStart, lpwszStart);
+ TRACE("%p %ld %p %ld %p %p\n", lppszComponent, *dwComponentLen, lpwszComponent, dwwComponentLen, lpszStart, lpwszStart);
if (*dwComponentLen != 0)
{
DWORD nASCIILength=WideCharToMultiByte(CP_ACP,0,lpwszComponent,dwwComponentLen,NULL,0,NULL,NULL);
if (*lppszComponent == NULL)
{
int nASCIIOffset=WideCharToMultiByte(CP_ACP,0,lpwszStart,lpwszComponent-lpwszStart,NULL,0,NULL,NULL);
- *lppszComponent = (LPSTR)lpszStart+nASCIIOffset;
+ if (lpwszComponent)
+ *lppszComponent = (LPSTR)lpszStart+nASCIIOffset;
+ else
+ *lppszComponent = NULL;
*dwComponentLen = nASCIILength;
}
else
diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c
index 9c7e213..093fb74 100644
--- a/dlls/wininet/tests/http.c
+++ b/dlls/wininet/tests/http.c
@@ -610,11 +610,9 @@ static void InternetCrackUrl_test(void)
ok(!strncmp(urlComponents.lpszHostName,TEST_URL_HOST,strlen(TEST_URL_HOST)),"lpszHostName should be %s but is %s\n", TEST_URL_HOST, urlComponents.lpszHostName);
ok(urlComponents.nPort == INTERNET_DEFAULT_HTTP_PORT,"urlComponents->nPort should have been 80 instead of %d\n", urlComponents.nPort);
ok(urlComponents.nScheme == INTERNET_SCHEME_HTTP,"urlComponents->nScheme should have been INTERNET_SCHEME_HTTP instead of %d\n", urlComponents.nScheme);
- todo_wine {
ok(!urlComponents.lpszUserName, ".lpszUserName should have been set to NULL\n");
ok(!urlComponents.lpszPassword, ".lpszPassword should have been set to NULL\n");
ok(!urlComponents.lpszExtraInfo, ".lpszExtraInfo should have been set to NULL\n");
- }
ok(!urlComponents.dwUserNameLength,".dwUserNameLength should be 0, but is %ld\n", urlComponents.dwUserNameLength);
ok(!urlComponents.dwPasswordLength,".dwPasswordLength should be 0, but is %ld\n", urlComponents.dwPasswordLength);
ok(!urlComponents.dwExtraInfoLength,".dwExtraInfoLength should be 0, but is %ld\n", urlComponents.dwExtraInfoLength);