summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/windows/input.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-01-08 12:41:13 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-01-08 12:41:13 +0100
commitce75a5d6825066fc67539c4eafed5902a34f9457 (patch)
treeb66bb69abc3da5001a315428670d373240967cd7 /src/osd/windows/input.cpp
parent12995ac3d44ac182efc213c67e0752388f1d7530 (diff)
removed memory tracking (nw)
Diffstat (limited to 'src/osd/windows/input.cpp')
-rw-r--r--src/osd/windows/input.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osd/windows/input.cpp b/src/osd/windows/input.cpp
index ccfd7b24006..0165e4820f0 100644
--- a/src/osd/windows/input.cpp
+++ b/src/osd/windows/input.cpp
@@ -858,7 +858,7 @@ static device_info *generic_device_alloc(running_machine &machine, device_info *
device_info *devinfo;
// allocate memory for the device object
- devinfo = global_alloc_clear(device_info(machine));
+ devinfo = global_alloc_clear<device_info>(machine);
devinfo->head = devlist_head_ptr;
// allocate a UTF8 copy of the name
@@ -1831,7 +1831,7 @@ static device_info *rawinput_device_create(running_machine &machine, device_info
// determine the length of the device name, allocate it, and fetch it if not nameless
if ((*get_rawinput_device_info)(device->hDevice, RIDI_DEVICENAME, NULL, &name_length) != 0)
goto error;
- tname = global_alloc_array_clear(TCHAR, name_length+1);
+ tname = global_alloc_array_clear<TCHAR>(name_length+1);
if (name_length > 1 && (*get_rawinput_device_info)(device->hDevice, RIDI_DEVICENAME, tname, &name_length) == -1)
goto error;