Skip to content

Commit

Permalink
Resolve 64bit crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
Florin9doi authored and jackun committed Oct 31, 2020
1 parent 0ec87bc commit 927fd0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/usb-mic/audiodev-wasapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -898,12 +898,12 @@ static BOOL CALLBACK WASAPIDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM lPa

switch (uMsg) {
case WM_CREATE:
SetWindowLongPtr(hW, GWLP_USERDATA, (LONG)lParam);
SetWindowLongPtr(hW, GWLP_USERDATA, lParam);
break;
case WM_INITDIALOG:
{
s = (WASAPISettings *)lParam;
SetWindowLongPtr(hW, GWLP_USERDATA, (LONG)lParam);
SetWindowLongPtr(hW, GWLP_USERDATA, lParam);
int buffering = 50;
LoadSetting(s->dev_type, s->port, APINAME, N_BUFFER_LEN_SRC, buffering);

Expand Down
2 changes: 1 addition & 1 deletion src/usb-pad/raw/raw-config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ INT_PTR CALLBACK ConfigureRawDlgProc(HWND hW, UINT uMsg, WPARAM wParam, LPARAM l
if(!InitHid())
return FALSE;
dgHwnd = hW;
SetWindowLongPtr(hW, GWLP_USERDATA, (LONG)lParam);
SetWindowLongPtr(hW, GWLP_USERDATA, lParam);
//SendDlgItemMessage(hW, IDC_BUILD_DATE, WM_SETTEXT, 0, (LPARAM)__DATE__ " " __TIME__);
ListView_SetExtendedListViewStyle(GetDlgItem(hW, IDC_LIST1), LVS_EX_FULLROWSELECT);

Expand Down

0 comments on commit 927fd0a

Please sign in to comment.