Author: cwittich
Date: Sun Mar 21 20:17:10 2010
New Revision: 46315
URL:
http://svn.reactos.org/svn/reactos?rev=46315&view=rev
Log:
[AVIFIL32]
sync avifil32 with wine 1.1.41
Modified:
trunk/reactos/dll/win32/avifil32/api.c
Modified: trunk/reactos/dll/win32/avifil32/api.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/avifil32/api.c?r…
==============================================================================
--- trunk/reactos/dll/win32/avifil32/api.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/avifil32/api.c [iso-8859-1] Sun Mar 21 20:17:10 2010
@@ -1030,14 +1030,14 @@
* First filter is named "All multimedia files" and its filter is a
* collection of all possible extensions except "*.*".
*/
- if (RegOpenKeyW(HKEY_CLASSES_ROOT, szAVIFileExtensions, &hKey) != S_OK) {
+ if (RegOpenKeyW(HKEY_CLASSES_ROOT, szAVIFileExtensions, &hKey) != ERROR_SUCCESS) {
HeapFree(GetProcessHeap(), 0, lp);
return AVIERR_ERROR;
}
- for (n = 0;RegEnumKeyW(hKey, n, szFileExt, sizeof(szFileExt)/sizeof(szFileExt[0])) ==
S_OK;n++) {
+ for (n = 0;RegEnumKeyW(hKey, n, szFileExt, sizeof(szFileExt)/sizeof(szFileExt[0])) ==
ERROR_SUCCESS;n++) {
/* get CLSID to extension */
size = sizeof(szValue);
- if (RegQueryValueW(hKey, szFileExt, szValue, &size) != S_OK)
+ if (RegQueryValueW(hKey, szFileExt, szValue, &size) != ERROR_SUCCESS)
break;
/* search if the CLSID is already known */
@@ -1078,7 +1078,7 @@
RegCloseKey(hKey);
/* 2. get descriptions for the CLSIDs and fill out szFilter */
- if (RegOpenKeyW(HKEY_CLASSES_ROOT, szClsid, &hKey) != S_OK) {
+ if (RegOpenKeyW(HKEY_CLASSES_ROOT, szClsid, &hKey) != ERROR_SUCCESS) {
HeapFree(GetProcessHeap(), 0, lp);
return AVIERR_ERROR;
}
@@ -1086,7 +1086,7 @@
/* first the description */
if (n != 0) {
size = sizeof(szValue);
- if (RegQueryValueW(hKey, lp[n].szClsid, szValue, &size) == S_OK) {
+ if (RegQueryValueW(hKey, lp[n].szClsid, szValue, &size) == ERROR_SUCCESS) {
size = lstrlenW(szValue);
lstrcpynW(szFilter, szValue, cbFilter);
}