Dylan Smith : richedit: Fixed pointer syntax in helper functions for tests.
Alexandre Julliard
julliard at winehq.org
Thu Oct 23 08:38:07 CDT 2008
Module: wine
Branch: master
Commit: 242b1bc1091aa5f81b956327586106ec01264216
URL: http://source.winehq.org/git/wine.git/?a=commit;h=242b1bc1091aa5f81b956327586106ec01264216
Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date: Wed Oct 22 11:11:06 2008 -0400
richedit: Fixed pointer syntax in helper functions for tests.
---
dlls/riched20/tests/editor.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c
index a6c4a82..72e57c3 100644
--- a/dlls/riched20/tests/editor.c
+++ b/dlls/riched20/tests/editor.c
@@ -116,11 +116,11 @@ static BOOL hold_key(int vk)
BYTE key_state[256];
BOOL result;
- result = GetKeyboardState((LPBYTE)&key_state);
+ result = GetKeyboardState(key_state);
ok(result, "GetKeyboardState failed.\n");
if (!result) return FALSE;
key_state[vk] |= 0x80;
- result = SetKeyboardState((LPBYTE)&key_state);
+ result = SetKeyboardState(key_state);
ok(result, "SetKeyboardState failed.\n");
return result != 0;
}
@@ -130,11 +130,11 @@ static BOOL release_key(int vk)
BYTE key_state[256];
BOOL result;
- result = GetKeyboardState((LPBYTE)&key_state);
+ result = GetKeyboardState(key_state);
ok(result, "GetKeyboardState failed.\n");
if (!result) return FALSE;
key_state[vk] &= ~0x80;
- result = SetKeyboardState((LPBYTE)&key_state);
+ result = SetKeyboardState(key_state);
ok(result, "SetKeyboardState failed.\n");
return result != 0;
}
More information about the wine-cvs
mailing list