Fixed assorted typos in some of the new C files.

This commit is contained in:
Pietro Gagliardi 2014-07-17 23:56:16 -04:00
parent b174ed985c
commit 7c6fa3b2fd
3 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ DWORD initCommonControls(LPCWSTR manifest, char **errmsg)
} }
/* GetProcAddress() only takes a multibyte string */ /* GetProcAddress() only takes a multibyte string */
#define LOAD(fn) f = GetModuleHandle(comctl32, fn); \ #define LOAD(fn) f = GetProcAddress(comctl32, fn); \
if (f == NULL) { \ if (f == NULL) { \
*errmsg = "error loading " fn "()"; \ *errmsg = "error loading " fn "()"; \
return GetLastError(); \ return GetLastError(); \

View File

@ -7,7 +7,7 @@ LRESULT getWindowTextLen(HWND hwnd)
return SendMessageW(hwnd, WM_GETTEXTLENGTH, 0, 0); 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); SetLastError(0);
if (SendMessageW(hwnd, WM_GETTEXT, n + 1, (LPARAM) buf) != n) if (SendMessageW(hwnd, WM_GETTEXT, n + 1, (LPARAM) buf) != n)

View File

@ -44,7 +44,7 @@ extern LRESULT forwardCommand(HWND, UINT, WPARAM, LPARAM);
extern void setButtonSubclass(HWND, void *); extern void setButtonSubclass(HWND, void *);
/* init_windows.c */ /* init_windows.c */
extern HINSTANCE hInstnace; extern HINSTANCE hInstance;
extern int nCmdShow; extern int nCmdShow;
extern HICON hDefaultIcon; extern HICON hDefaultIcon;
extern HCURSOR hArrowCursor; extern HCURSOR hArrowCursor;