We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4af231b commit be48b3eCopy full SHA for be48b3e
sql/mysql_upgrade_service.cc
@@ -343,7 +343,7 @@ static void get_service_config()
343
if (!service)
344
die("OpenService failed with %u", GetLastError());
345
346
- BYTE config_buffer[8 * 1024];
+ alignas(QUERY_SERVICE_CONFIGW) BYTE config_buffer[8 * 1024];
347
LPQUERY_SERVICE_CONFIGW config = (LPQUERY_SERVICE_CONFIGW)config_buffer;
348
DWORD size = sizeof(config_buffer);
349
DWORD needed;
0 commit comments