Commit 23b55adc authored by Rafaël Carré's avatar Rafaël Carré Committed by Jean-Baptiste Kempf

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
(cherry picked from commit 24bd745705ae6017552678a20f1418c06ed81376)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent cfc6a9bf
...@@ -324,8 +324,8 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam, ...@@ -324,8 +324,8 @@ LRESULT CALLBACK WMCOPYWNDPROC( HWND hwnd, UINT uMsg, WPARAM wParam,
ppsz_argv = (char **)malloc( i_argc * sizeof(char *) ); ppsz_argv = (char **)malloc( i_argc * sizeof(char *) );
for( i_opt = 0; i_opt < i_argc; i_opt++ ) for( i_opt = 0; i_opt < i_argc; i_opt++ )
{ {
ppsz_argv[i_opt] = p_data->data + i_data + sizeof(int); ppsz_argv[i_opt] = p_data->data + i_data + sizeof(size_t);
i_data += sizeof(int) + *((int *)(p_data->data + i_data)); i_data += sizeof(size_t) + *((size_t *)(p_data->data + i_data));
} }
for( i_opt = 0; i_opt < i_argc; i_opt++ ) 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