Search
lxdream.org :: lxdream/src/maple/vmu.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/maple/vmu.c
changeset 1088:cf3900ae8acc
prev1072:d82e04e6d497
next1172:43eef98ff265
author nkeynes
date Fri Dec 04 18:06:12 2009 +1000 (11 years ago)
permissions -rw-r--r--
last change Fix crash on vmu device create introduced in r1072 - config was being
initialised in the wrong order
file annotate diff log raw
1.1 --- a/src/maple/vmu.c Tue Jul 21 20:33:21 2009 +1000
1.2 +++ b/src/maple/vmu.c Fri Dec 04 18:06:12 2009 +1000
1.3 @@ -101,8 +101,8 @@
1.4 static maple_device_t vmu_new( )
1.5 {
1.6 vmu_device_t dev = malloc( sizeof(struct vmu_device) );
1.7 + memcpy( dev, &base_vmu, sizeof(base_vmu) );
1.8 dev->config.data = dev;
1.9 - memcpy( dev, &base_vmu, sizeof(base_vmu) );
1.10 return MAPLE_DEVICE(dev);
1.11 }
1.12
.