Fix locator :hwnd

When creating an object using :hwnd as a locator the window is not found. For example

```
windows.text_field( :hwnd => some_valid_hwnd ).set "123"
```
fails. The composed method call control_hwnd is tried to be called with one parameter when it takes two.
Spec added. Typo fixed.

Reason, so to speak, for typo is that I'm a consultant working on a
"secure" laptop that is blocked from doing, well, pretty much anything. I'm
actually surprised I've accomplished as much as I have. That said, where I
fix bugs and test is not where I can access github. Thus I must retype
(arghhh!) fixes - hence the mistake.

Cheers, Glenn

On Thu, Nov 6, 2014 at 1:17 PM, Glenn Waters <gwwaters@gmail.com> wrote:

> Ahh yes. Sorry bout that. Cut/paste error. Let me resubmit with that fix
> too.
>
>
> On Thu, Nov 6, 2014 at 1:10 PM, Jarmo Pertman <notifications@github.com>
> wrote:
>
>> In lib/rautomation/adapter/win_32/functions.rb:
>>
>> > @@ -262,7 +262,11 @@ def control_properties(hwnd, locators)
>> >
>> >            def element_properties(type, hwnd, locators)
>> >              locators.inject({}) do |properties, locator|
>> > -              properties[locator[0]] = self.send("#{type}_#{locator[0]}", hwnd) unless locator[0] == :index
>>
>> What about this additional check for :index which existed before the
>> changes?
>>
>> —
>> Reply to this email directly or view it on GitHub
>> <https://github.com/jarmo/RAutomation/pull/96/files#r19966565>.
>>
>
>