Author: spetreolle
Date: Sat Nov 7 11:59:23 2015
New Revision: 69830
URL:
http://svn.reactos.org/svn/reactos?rev=69830&view=rev
Log:
[COM_APITEST]
Use explicit W calls.
All the code is unicode-based.
Modified:
trunk/rostests/apitests/com/com_apitest.c
trunk/rostests/apitests/com/com_apitest.h
Modified: trunk/rostests/apitests/com/com_apitest.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/com/com_apitest.…
==============================================================================
--- trunk/rostests/apitests/com/com_apitest.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/com/com_apitest.c [iso-8859-1] Sat Nov 7 11:59:23 2015
@@ -443,7 +443,7 @@
HKEY hKeyClasses;
LONG result;
- result = RegOpenKeyEx(HKEY_LOCAL_MACHINE, L"Software\\Classes\\CLSID", 0,
KEY_ENUMERATE_SUB_KEYS, &hKeyClasses);
+ result = RegOpenKeyExW(HKEY_LOCAL_MACHINE, L"Software\\Classes\\CLSID", 0,
KEY_ENUMERATE_SUB_KEYS, &hKeyClasses);
ok(result == NO_ERROR, "Failed to open classes key, error %lu\n", result);
if (!myskip(result == NO_ERROR, "No classes key\n"))
{
@@ -464,20 +464,20 @@
if (myskip(NT_SUCCESS(status), "No guid string\n"))
continue;
- result = RegOpenKeyEx(hKeyClasses, clsid.Buffer, 0, KEY_ENUMERATE_SUB_KEYS,
&hKey);
+ result = RegOpenKeyExW(hKeyClasses, clsid.Buffer, 0, KEY_ENUMERATE_SUB_KEYS,
&hKey);
ok(result == NO_ERROR, "Failed to open key for %s, error %lu\n",
class->name, result);
RtlFreeUnicodeString(&clsid);
if (myskip(result == NO_ERROR, "No key\n"))
continue;
- result = RegOpenKeyEx(hKey, L"InProcServer32", 0, KEY_QUERY_VALUE,
&hKeyServer);
+ result = RegOpenKeyExW(hKey, L"InProcServer32", 0, KEY_QUERY_VALUE,
&hKeyServer);
ok(result == NO_ERROR, "Failed to open key for %s, error %lu\n",
class->name, result);
RegCloseKey(hKey);
if (myskip(result == NO_ERROR, "No key\n"))
continue;
dataSize = sizeof(data);
- result = RegQueryValueEx(hKeyServer, NULL, NULL, &type, (PBYTE)data,
&dataSize);
+ result = RegQueryValueExW(hKeyServer, NULL, NULL, &type, (PBYTE)data,
&dataSize);
ok(result == NO_ERROR, "Failed to query value for %s, error %lu\n",
class->name, result);
if (!myskip(result == NO_ERROR, "No module name\n"))
{
@@ -492,7 +492,7 @@
}
dataSize = sizeof(data);
- result = RegQueryValueEx(hKeyServer, L"ThreadingModel", NULL,
&type, (PBYTE)data, &dataSize);
+ result = RegQueryValueExW(hKeyServer, L"ThreadingModel", NULL,
&type, (PBYTE)data, &dataSize);
ok(result == NO_ERROR, "Failed to query value for %s, error %lu\n",
class->name, result);
if (!myskip(result == NO_ERROR, "No ThreadingModel\n"))
{
@@ -523,7 +523,7 @@
PCCLASS_AND_INTERFACES class;
HRESULT (__stdcall *DllGetClassObject)(REFCLSID, REFIID, PVOID *);
- DllGetClassObject = (PVOID)GetProcAddress(GetModuleHandle(ModuleName),
"DllGetClassObject");
+ DllGetClassObject = (PVOID)GetProcAddress(GetModuleHandleW(ModuleName),
"DllGetClassObject");
ok(DllGetClassObject != NULL, "DllGetClassObject not found in %ls, error
%lu\n", ModuleName, GetLastError());
if (myskip(DllGetClassObject != NULL, "No DllGetClassObject\n"))
return;
@@ -580,7 +580,7 @@
HKEY hKeyInterface;
LONG result;
- result = RegOpenKeyEx(HKEY_LOCAL_MACHINE, L"Software\\Classes\\Interface",
0, KEY_ENUMERATE_SUB_KEYS, &hKeyInterface);
+ result = RegOpenKeyExW(HKEY_LOCAL_MACHINE, L"Software\\Classes\\Interface",
0, KEY_ENUMERATE_SUB_KEYS, &hKeyInterface);
ok(result == NO_ERROR, "Failed to open interface key, error %lu\n",
result);
if (!myskip(result == NO_ERROR, "No interface key\n"))
{
@@ -601,7 +601,7 @@
if (myskip(NT_SUCCESS(status), "No guid string\n"))
continue;
- result = RegOpenKeyEx(hKeyInterface, iid.Buffer, 0, KEY_QUERY_VALUE,
&hKey);
+ result = RegOpenKeyExW(hKeyInterface, iid.Buffer, 0, KEY_QUERY_VALUE,
&hKey);
if (iface->noreg)
{
ok(result == ERROR_FILE_NOT_FOUND, "RegOpenKeyEx returned %lu for
%s\n", result, iface->name);
@@ -616,7 +616,7 @@
continue;
dataSize = sizeof(data);
- result = RegQueryValueEx(hKey, NULL, NULL, &type, (PBYTE)data,
&dataSize);
+ result = RegQueryValueExW(hKey, NULL, NULL, &type, (PBYTE)data,
&dataSize);
ok(result == NO_ERROR, "Failed to query value for %s, error %lu\n",
iface->name, result);
if (!myskip(result == NO_ERROR, "No module name\n"))
{
Modified: trunk/rostests/apitests/com/com_apitest.h
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/com/com_apitest.…
==============================================================================
--- trunk/rostests/apitests/com/com_apitest.h [iso-8859-1] (original)
+++ trunk/rostests/apitests/com/com_apitest.h [iso-8859-1] Sat Nov 7 11:59:23 2015
@@ -17,7 +17,6 @@
#define COBJMACROS
#define WIN32_NO_STATUS
-#define UNICODE
#include <wine/test.h>
#include <objbase.h>
#include <objsafe.h>