#define COBJMACROS
-#include "config.h"
#include <stdarg.h>
#include "windef.h"
p = q = str;
while (*q && *q != '=')
{
- if (*q == ',' || isspaceW( *q )) return WBEM_E_INVALID_PARAMETER;
+ if (*q == ',' || iswspace( *q )) return WBEM_E_INVALID_PARAMETER;
q++;
}
len = q - p;
key->len_name = len;
p = ++q;
- if (!*p || *p == ',' || isspaceW( *p )) return WBEM_E_INVALID_PARAMETER;
+ if (!*p || *p == ',' || iswspace( *p )) return WBEM_E_INVALID_PARAMETER;
while (*q && *q != ',') q++;
len = q - p;
path->flags |= WBEMPATH_INFO_PATH_HAD_SERVER;
}
p = q;
- if (strchrW( p, '\\' ) || strchrW( p, '/' ))
+ if (wcschr( p, '\\' ) || wcschr( p, '/' ))
{
if (*q != '\\' && *q != '/' && *q != ':')
{
if (!pszPath[0]) goto done;
if ((hr = parse_text( path, uMode, pszPath )) != S_OK) goto done;
- len = strlenW( pszPath );
+ len = lstrlenW( pszPath );
if (!(path->text = heap_alloc( (len + 1) * sizeof(WCHAR) )))
{
clear_path( path );
hr = E_OUTOFMEMORY;
goto done;
}
- strcpyW( path->text, pszPath );
+ lstrcpyW( path->text, pszPath );
path->len_text = len;
done:
if (path->len_server)
{
p[0] = p[1] = '\\';
- strcpyW( p + 2, path->server );
+ lstrcpyW( p + 2, path->server );
}
else
{
heap_free( keylist );
return NULL;
}
- strcpyW( ret, namespace );
+ lstrcpyW( ret, namespace );
if (path->len_class)
{
ret[len_namespace] = ':';
- strcpyW( ret + len_namespace + 1, path->class );
+ lstrcpyW( ret + len_namespace + 1, path->class );
if (path->num_keys)
{
ret[len_namespace + path->len_class + 1] = '.';
- strcpyW( ret + len_namespace + path->len_class + 2, keylist );
+ lstrcpyW( ret + len_namespace + path->len_class + 2, keylist );
}
}
heap_free( namespace );
heap_free( keylist );
return NULL;
}
- strcpyW( ret, path->class );
+ lstrcpyW( ret, path->class );
if (path->num_keys)
{
ret[path->len_class] = '.';
- strcpyW( ret + path->len_class + 1, keylist );
+ lstrcpyW( ret + path->len_class + 1, keylist );
}
heap_free( keylist );
return ret;
heap_free( keylist );
return NULL;
}
- strcpyW( p, server );
+ lstrcpyW( p, server );
p += len_server;
- strcpyW( p, namespace );
+ lstrcpyW( p, namespace );
p += len_namespace;
if (path->len_class)
{
*p++ = ':';
- strcpyW( p, path->class );
+ lstrcpyW( p, path->class );
if (path->num_keys)
{
p[path->len_class] = '.';
- strcpyW( p + path->len_class + 1, keylist );
+ lstrcpyW( p + path->len_class + 1, keylist );
}
}
heap_free( namespace );
heap_free( server );
return NULL;
}
- strcpyW( p, server );
+ lstrcpyW( p, server );
p += len_server;
- strcpyW( p, namespace );
+ lstrcpyW( p, namespace );
heap_free( namespace );
heap_free( server );
return ret;
hr = WBEM_E_INVALID_PARAMETER;
goto done;
}
- if (str) strcpyW( pszText, str );
+ if (str) lstrcpyW( pszText, str );
else pszText[0] = 0;
*puBufferLength = len + 1;
}
heap_free( path->server );
path->server = server;
- path->len_server = strlenW( path->server );
+ path->len_server = lstrlenW( path->server );
path->flags |= flags;
}
else
LeaveCriticalSection( &path->cs );
return WBEM_E_NOT_AVAILABLE;
}
- if (*len > path->len_server) strcpyW( name, path->server );
+ if (*len > path->len_server) lstrcpyW( name, path->server );
*len = path->len_server + 1;
LeaveCriticalSection( &path->cs );
path->len_namespaces[i + 1] = path->len_namespaces[i];
}
path->namespaces[idx] = new;
- path->len_namespaces[idx] = strlenW( new );
+ path->len_namespaces[idx] = lstrlenW( new );
path->num_namespaces++;
path->flags |= flags;
LeaveCriticalSection( &path->cs );
return WBEM_E_INVALID_PARAMETER;
}
- if (*len > path->len_namespaces[idx]) strcpyW( name, path->namespaces[idx] );
+ if (*len > path->len_namespaces[idx]) lstrcpyW( name, path->namespaces[idx] );
*len = path->len_namespaces[idx] + 1;
LeaveCriticalSection( &path->cs );
heap_free( path->class );
path->class = class;
- path->len_class = strlenW( path->class );
+ path->len_class = lstrlenW( path->class );
path->flags |= WBEMPATH_INFO_V2_COMPLIANT | WBEMPATH_INFO_CIM_COMPLIANT;
LeaveCriticalSection( &path->cs );
LeaveCriticalSection( &path->cs );
return WBEM_E_INVALID_OBJECT_PATH;
}
- if (*len > path->len_class) strcpyW( name, path->class );
+ if (*len > path->len_class) lstrcpyW( name, path->class );
*len = path->len_class + 1;
LeaveCriticalSection( &path->cs );