Commit 24bd7457 authored by Rafaël Carré's avatar Rafaël Carré

Win32 one-instance: fix mismatch in ABI on win64

86f2f732 changed string length storage from int to size_t but did
not update the receiving code.

Close #6084
parent 2dd544eb
......@@ -291,8 +291,8 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
ppsz_argv = (char **)malloc( i_argc * sizeof(char *) );
for( i_opt = 0; i_opt < i_argc; i_opt++ )
{
ppsz_argv[i_opt] = p_data->data + i_data + sizeof(int);
i_data += sizeof(int) + *((int *)(p_data->data + i_data));
ppsz_argv[i_opt] = p_data->data + i_data + sizeof(size_t);
i_data += sizeof(size_t) + *((size_t *)(p_data->data + i_data));
}
for( i_opt = 0; i_opt < i_argc; i_opt++ )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment