From 7c6fa3b2fd773a31d4c0f8899b96c1f25a669ec1 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 17 Jul 2014 23:56:16 -0400 Subject: [PATCH] Fixed assorted typos in some of the new C files. --- redo/comctl32_windows.c | 2 +- redo/common_windows.c | 2 +- redo/winapi_windows.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/redo/comctl32_windows.c b/redo/comctl32_windows.c index d621d2a..a6ffaf1 100644 --- a/redo/comctl32_windows.c +++ b/redo/comctl32_windows.c @@ -39,7 +39,7 @@ DWORD initCommonControls(LPCWSTR manifest, char **errmsg) } /* GetProcAddress() only takes a multibyte string */ -#define LOAD(fn) f = GetModuleHandle(comctl32, fn); \ +#define LOAD(fn) f = GetProcAddress(comctl32, fn); \ if (f == NULL) { \ *errmsg = "error loading " fn "()"; \ return GetLastError(); \ diff --git a/redo/common_windows.c b/redo/common_windows.c index 6b9bf8c..f12050c 100644 --- a/redo/common_windows.c +++ b/redo/common_windows.c @@ -7,7 +7,7 @@ LRESULT getWindowTextLen(HWND hwnd) return SendMessageW(hwnd, WM_GETTEXTLENGTH, 0, 0); } -void getWindowText(HWND hwnd, WPARAM n, LPCWSTR out) +void getWindowText(HWND hwnd, WPARAM n, LPCWSTR buf) { SetLastError(0); if (SendMessageW(hwnd, WM_GETTEXT, n + 1, (LPARAM) buf) != n) diff --git a/redo/winapi_windows.h b/redo/winapi_windows.h index 71eb94e..9d75af4 100644 --- a/redo/winapi_windows.h +++ b/redo/winapi_windows.h @@ -44,7 +44,7 @@ extern LRESULT forwardCommand(HWND, UINT, WPARAM, LPARAM); extern void setButtonSubclass(HWND, void *); /* init_windows.c */ -extern HINSTANCE hInstnace; +extern HINSTANCE hInstance; extern int nCmdShow; extern HICON hDefaultIcon; extern HCURSOR hArrowCursor;