Fixed assorted typos in some of the new C files.
This commit is contained in:
parent
b174ed985c
commit
7c6fa3b2fd
|
@ -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(); \
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue