diff --git a/src/win/win_d3d.cpp b/src/win/win_d3d.cpp index 1c5cbc0..2b87e1e 100644 --- a/src/win/win_d3d.cpp +++ b/src/win/win_d3d.cpp @@ -288,7 +288,7 @@ d3d_blit(int x, int y, int y1, int y2, int w, int h) { HRESULT hr = D3D_OK; HRESULT hbsr = D3D_OK; - VOID* pVoid; + VOID* pVoid = 0; D3DLOCKED_RECT dr; RECT r; int yy; diff --git a/src/win/win_settings.c b/src/win/win_settings.c index 5a4cd91..bf95b5e 100644 --- a/src/win/win_settings.c +++ b/src/win/win_settings.c @@ -3603,7 +3603,7 @@ static BOOL CALLBACK #endif win_settings_hard_disks_proc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lParam) { - HWND h; + HWND h = INVALID_HANDLE_VALUE; int old_sel = 0; int b = 0; int assign = 0; @@ -4646,7 +4646,7 @@ static BOOL CALLBACK #endif win_settings_floppy_drives_proc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lParam) { - HWND h; + HWND h = INVALID_HANDLE_VALUE; int i = 0; int old_sel = 0; WCHAR szText[256]; @@ -4781,7 +4781,7 @@ static BOOL CALLBACK #endif win_settings_other_removable_devices_proc(HWND hdlg, UINT message, WPARAM wParam, LPARAM lParam) { - HWND h; + HWND h = INVALID_HANDLE_VALUE; int old_sel = 0; int b = 0; int b2 = 0; diff --git a/src/win/win_ui.c b/src/win/win_ui.c index ccad080..a8fa7ae 100644 --- a/src/win/win_ui.c +++ b/src/win/win_ui.c @@ -763,7 +763,7 @@ ui_init(int nCmdShow) WCHAR title[200]; WNDCLASSEX wincl; /* buffer for main window's class */ MSG messages; /* received-messages buffer */ - HWND hwnd; /* handle for our window */ + HWND hwnd = 0; /* handle for our window */ HACCEL haccel; /* handle to accelerator table */ int bRet;