Author: akhaldi
Date: Mon Sep 29 13:16:53 2014
New Revision: 64390
URL:
http://svn.reactos.org/svn/reactos?rev=64390&view=rev
Log:
[MMDEVAPI]
* Sync with Wine 1.7.27.
CORE-8540
Modified:
trunk/reactos/dll/win32/mmdevapi/devenum.c
trunk/reactos/dll/win32/mmdevapi/mmdevapi_classes.idl
trunk/reactos/media/doc/README.WINE
Modified: trunk/reactos/dll/win32/mmdevapi/devenum.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mmdevapi/devenum…
==============================================================================
--- trunk/reactos/dll/win32/mmdevapi/devenum.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/mmdevapi/devenum.c [iso-8859-1] Mon Sep 29 13:16:53 2014
@@ -1048,8 +1048,8 @@
notify_clients(flow, eMultimedia, id);
}
-static int notify_if_changed(EDataFlow flow, ERole role, HKEY key,
- const WCHAR *val_name, WCHAR *old_val, IMMDevice *def_dev)
+static BOOL notify_if_changed(EDataFlow flow, ERole role, HKEY key,
+ const WCHAR *val_name, WCHAR *old_val, IMMDevice *def_dev)
{
WCHAR new_val[64], *id;
DWORD size;
@@ -1064,7 +1064,7 @@
hr = IMMDevice_GetId(def_dev, &id);
if(FAILED(hr)){
ERR("GetId failed: %08x\n", hr);
- return 0;
+ return FALSE;
}
}else
id = NULL;
@@ -1073,23 +1073,23 @@
old_val[0] = 0;
CoTaskMemFree(id);
- return 1;
+ return TRUE;
}
/* system default -> system default, noop */
- return 0;
+ return FALSE;
}
if(!lstrcmpW(old_val, new_val)){
/* set by user -> same value */
- return 0;
+ return FALSE;
}
if(new_val[0] != 0){
/* set by user -> different value */
notify_clients(flow, role, new_val);
memcpy(old_val, new_val, sizeof(new_val));
- return 1;
+ return TRUE;
}
/* set by user -> system default */
@@ -1097,7 +1097,7 @@
hr = IMMDevice_GetId(def_dev, &id);
if(FAILED(hr)){
ERR("GetId failed: %08x\n", hr);
- return 0;
+ return FALSE;
}
}else
id = NULL;
@@ -1106,7 +1106,7 @@
old_val[0] = 0;
CoTaskMemFree(id);
- return 1;
+ return TRUE;
}
static DWORD WINAPI notif_thread_proc(void *user)
@@ -1325,10 +1325,10 @@
*nprops = 0;
do {
DWORD len = sizeof(buffer)/sizeof(*buffer);
- if (RegEnumKeyExW(propkey, i, buffer, &len, NULL, NULL, NULL, NULL) !=
ERROR_SUCCESS)
+ if (RegEnumValueW(propkey, i, buffer, &len, NULL, NULL, NULL, NULL) !=
ERROR_SUCCESS)
break;
i++;
- } while (0);
+ } while (1);
RegCloseKey(propkey);
TRACE("Returning %i\n", i);
*nprops = i;
@@ -1351,16 +1351,16 @@
if (FAILED(hr))
return hr;
- if (RegEnumKeyExW(propkey, prop, buffer, &len, NULL, NULL, NULL, NULL) !=
ERROR_SUCCESS
- || len <= 40)
+ if (RegEnumValueW(propkey, prop, buffer, &len, NULL, NULL, NULL, NULL) !=
ERROR_SUCCESS
+ || len <= 39)
{
WARN("GetAt %u failed\n", prop);
return E_INVALIDARG;
}
RegCloseKey(propkey);
- buffer[39] = 0;
+ buffer[38] = 0;
CLSIDFromString(buffer, &key->fmtid);
- key->pid = atoiW(&buffer[40]);
+ key->pid = atoiW(&buffer[39]);
return S_OK;
}
Modified: trunk/reactos/dll/win32/mmdevapi/mmdevapi_classes.idl
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/mmdevapi/mmdevap…
==============================================================================
--- trunk/reactos/dll/win32/mmdevapi/mmdevapi_classes.idl [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/mmdevapi/mmdevapi_classes.idl [iso-8859-1] Mon Sep 29 13:16:53
2014
@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#pragma makedep register
+
[
helpstring("MMDeviceEnumerator class"),
threading(both),
Modified: trunk/reactos/media/doc/README.WINE
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=…
==============================================================================
--- trunk/reactos/media/doc/README.WINE [iso-8859-1] (original)
+++ trunk/reactos/media/doc/README.WINE [iso-8859-1] Mon Sep 29 13:16:53 2014
@@ -107,7 +107,7 @@
reactos/dll/win32/mciwave # Synced to Wine-1.7.17
reactos/dll/win32/mgmtapi # Synced to Wine-1.7.27
reactos/dll/win32/mlang # Synced to Wine-1.7.17
-reactos/dll/win32/mmdevapi # Synced to Wine-1.7.1
+reactos/dll/win32/mmdevapi # Synced to Wine-1.7.27
reactos/dll/win32/mpr # Synced to Wine-1.7.17
reactos/dll/win32/mprapi # Synced to Wine-1.7.17
reactos/dll/win32/msacm32 # Synced to Wine-1.7.17